pub struct AnalysisContext {
pub boundaries: 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: 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 try_from_statistics(
input_schema: &Schema,
statistics: &[ColumnStatistics],
) -> Result<Self>
pub fn try_from_statistics( input_schema: &Schema, statistics: &[ColumnStatistics], ) -> Result<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 for AnalysisContext
impl PartialEq for AnalysisContext
impl StructuralPartialEq for AnalysisContext
Auto Trait Implementations§
impl Freeze for AnalysisContext
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more