pub struct CardinalityEstimator { /* private fields */ }Expand description
Cardinality estimator.
Implementations§
Source§impl CardinalityEstimator
impl CardinalityEstimator
Sourcepub fn add_table_stats(&mut self, name: &str, stats: TableStats)
pub fn add_table_stats(&mut self, name: &str, stats: TableStats)
Adds statistics for a table/label.
Sourcepub fn set_avg_fanout(&mut self, fanout: f64)
pub fn set_avg_fanout(&mut self, fanout: f64)
Sets the average edge fanout.
Sourcepub fn estimate(&self, op: &LogicalOperator) -> f64
pub fn estimate(&self, op: &LogicalOperator) -> f64
Estimates the cardinality of a logical operator.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CardinalityEstimator
impl RefUnwindSafe for CardinalityEstimator
impl Send for CardinalityEstimator
impl Sync for CardinalityEstimator
impl Unpin for CardinalityEstimator
impl UnwindSafe for CardinalityEstimator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more