struct ColumnChecker<'a> {
left_schema: &'a DFSchema,
left_columns: Option<HashSet<Column>>,
right_schema: &'a DFSchema,
right_columns: Option<HashSet<Column>>,
}Expand description
Evaluates the columns referenced in the given expression to see if they refer only to the left or right columns
Fields§
§left_schema: &'a DFSchemaschema of left join input
left_columns: Option<HashSet<Column>>columns in left_schema, computed on demand
right_schema: &'a DFSchemaschema of right join input
right_columns: Option<HashSet<Column>>columns in left_schema, computed on demand
Implementations§
Source§impl<'a> ColumnChecker<'a>
impl<'a> ColumnChecker<'a>
fn new(left_schema: &'a DFSchema, right_schema: &'a DFSchema) -> Self
Sourcefn is_left_only(&mut self, predicate: &Expr) -> bool
fn is_left_only(&mut self, predicate: &Expr) -> bool
Return true if the expression references only columns from the left side of the join
Sourcefn is_right_only(&mut self, predicate: &Expr) -> bool
fn is_right_only(&mut self, predicate: &Expr) -> bool
Return true if the expression references only columns from the right side of the join
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ColumnChecker<'a>
impl<'a> RefUnwindSafe for ColumnChecker<'a>
impl<'a> Send for ColumnChecker<'a>
impl<'a> Sync for ColumnChecker<'a>
impl<'a> Unpin for ColumnChecker<'a>
impl<'a> UnwindSafe for ColumnChecker<'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