pub struct AnalysisContext {
pub column_boundaries: Vec<Option<ExprBoundaries>>,
pub boundaries: Option<ExprBoundaries>,
}
Expand description
The shared context used during the analysis of an expression. Includes the boundaries for all known columns.
Fields§
§column_boundaries: Vec<Option<ExprBoundaries>>
A list of known column boundaries, ordered by the index of the column in the current schema.
boundaries: Option<ExprBoundaries>
Implementations§
source§impl AnalysisContext
impl AnalysisContext
pub fn new( input_schema: &Schema, column_boundaries: Vec<Option<ExprBoundaries>> ) -> Self
sourcepub fn from_statistics(input_schema: &Schema, statistics: &Statistics) -> Self
pub fn from_statistics(input_schema: &Schema, statistics: &Statistics) -> Self
Create a new analysis context from column statistics.
pub fn boundaries(&self) -> Option<&ExprBoundaries>
sourcepub fn with_boundaries(self, result: Option<ExprBoundaries>) -> Self
pub fn with_boundaries(self, result: Option<ExprBoundaries>) -> Self
Set the result of the current analysis.
sourcepub fn with_column_update(
self,
column: usize,
boundaries: ExprBoundaries
) -> Self
pub fn with_column_update( self, column: usize, boundaries: ExprBoundaries ) -> Self
Update the boundaries of a column.
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 ==
.