pub struct RequiredColumns { /* private fields */ }
Expand description
Describes which columns statistics are necessary to evaluate a
PruningPredicate
.
This structure permits reading and creating the minimum number statistics, which is important since statistics may be non trivial to read (e.g. large strings or when there are 1000s of columns).
Handles creating references to the min/max statistics for columns as well as recording which statistics are needed
Implementations§
Source§impl RequiredColumns
impl RequiredColumns
Sourcepub fn single_column(&self) -> Option<&Column>
pub fn single_column(&self) -> Option<&Column>
Returns Some(column) if this is a single column predicate.
Returns None if this is a multi-column predicate.
Examples:
a > 5 OR a < 10
returnsSome(a)
a > 5 OR b < 10
returnsNone
true
returns None
Trait Implementations§
Source§impl Clone for RequiredColumns
impl Clone for RequiredColumns
Source§fn clone(&self) -> RequiredColumns
fn clone(&self) -> RequiredColumns
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 RequiredColumns
impl Debug for RequiredColumns
Source§impl Default for RequiredColumns
impl Default for RequiredColumns
Source§fn default() -> RequiredColumns
fn default() -> RequiredColumns
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RequiredColumns
impl RefUnwindSafe for RequiredColumns
impl Send for RequiredColumns
impl Sync for RequiredColumns
impl Unpin for RequiredColumns
impl UnwindSafe for RequiredColumns
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§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