pub struct AnalysisContext {
pub boundaries: Option<Vec<ExprBoundaries>>,
pub selectivity: Option<f64>,
}
Expand description
The shared context used during the analysis of an expression. Includes the boundaries for all known columns.
Fields§
§boundaries: Option<Vec<ExprBoundaries>>
§selectivity: Option<f64>
The estimated percentage of rows that this expression would select, if it were to be used as a boolean predicate on a filter. The value will be between 0.0 (selects nothing) and 1.0 (selects everything).
Implementations§
source§impl AnalysisContext
impl AnalysisContext
pub fn new(boundaries: Vec<ExprBoundaries>) -> Self
pub fn with_selectivity(self, selectivity: f64) -> Self
sourcepub fn from_statistics(
input_schema: &Schema,
statistics: &[ColumnStatistics]
) -> Self
pub fn from_statistics( input_schema: &Schema, statistics: &[ColumnStatistics] ) -> Self
Create a new analysis context from column statistics.
Trait Implementations§
source§impl Clone for AnalysisContext
impl Clone for AnalysisContext
source§fn clone(&self) -> AnalysisContext
fn clone(&self) -> AnalysisContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AnalysisContext
impl Debug for AnalysisContext
source§impl PartialEq<AnalysisContext> for AnalysisContext
impl PartialEq<AnalysisContext> for AnalysisContext
source§fn eq(&self, other: &AnalysisContext) -> bool
fn eq(&self, other: &AnalysisContext) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AnalysisContext
Auto Trait Implementations§
impl RefUnwindSafe for AnalysisContext
impl Send for AnalysisContext
impl Sync for AnalysisContext
impl Unpin for AnalysisContext
impl UnwindSafe for AnalysisContext
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