struct PruningExpressionBuilder<'a> {
column: Column,
column_expr: Arc<dyn PhysicalExpr>,
op: Operator,
scalar_expr: Arc<dyn PhysicalExpr>,
field: &'a Field,
required_columns: &'a mut RequiredColumns,
}Fields§
§column: Column§column_expr: Arc<dyn PhysicalExpr>§op: Operator§scalar_expr: Arc<dyn PhysicalExpr>§field: &'a Field§required_columns: &'a mut RequiredColumnsImplementations§
Source§impl<'a> PruningExpressionBuilder<'a>
impl<'a> PruningExpressionBuilder<'a>
fn try_new( left: &'a Arc<dyn PhysicalExpr>, right: &'a Arc<dyn PhysicalExpr>, op: Operator, schema: &'a SchemaRef, required_columns: &'a mut RequiredColumns, ) -> Result<Self>
fn op(&self) -> Operator
fn scalar_expr(&self) -> &Arc<dyn PhysicalExpr>
fn min_column_expr(&mut self) -> Result<Arc<dyn PhysicalExpr>>
fn max_column_expr(&mut self) -> Result<Arc<dyn PhysicalExpr>>
Sourcefn null_count_column_expr(&mut self) -> Result<Arc<dyn PhysicalExpr>>
fn null_count_column_expr(&mut self) -> Result<Arc<dyn PhysicalExpr>>
This function is to simply retune the null_count physical expression no matter what the
predicate expression is
i.e., x > 5 => x_null_count, cast(x as int) < 10 => x_null_count, try_cast(x as float) < 10.0 => x_null_count
Sourcefn row_count_column_expr(&mut self) -> Result<Arc<dyn PhysicalExpr>>
fn row_count_column_expr(&mut self) -> Result<Arc<dyn PhysicalExpr>>
This function is to simply retune the row_count physical expression no matter what the
predicate expression is
i.e., x > 5 => x_row_count, cast(x as int) < 10 => x_row_count, try_cast(x as float) < 10.0 => x_row_count
Auto Trait Implementations§
impl<'a> Freeze for PruningExpressionBuilder<'a>
impl<'a> !RefUnwindSafe for PruningExpressionBuilder<'a>
impl<'a> Send for PruningExpressionBuilder<'a>
impl<'a> Sync for PruningExpressionBuilder<'a>
impl<'a> Unpin for PruningExpressionBuilder<'a>
impl<'a> !UnwindSafe for PruningExpressionBuilder<'a>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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