pub struct RuntimeRangeHint {
pub column: PlSmallStr,
pub order_keeping_expr: Option<Arc<dyn ColumnIoExpr>>,
pub source: Arc<dyn DynamicPredicateSource>,
pub constant: Option<Scalar>,
}Expand description
A column whose batches a reader may skip by a RuntimeRange. It is never
evaluated per row.
Fields§
§column: PlSmallStr§order_keeping_expr: Option<Arc<dyn ColumnIoExpr>>An order-keeping expression of column that the range is on. The range is on
the column itself when None.
source: Arc<dyn DynamicPredicateSource>§constant: Option<Scalar>The value the range is compared with in this file when the column is not stored in the file, such as a hive column or a missing column with a default.
Implementations§
Source§impl RuntimeRangeHint
impl RuntimeRangeHint
Sourcepub fn constant_matches(range: &RuntimeRange, value: &Scalar) -> Option<bool>
pub fn constant_matches(range: &RuntimeRange, value: &Scalar) -> Option<bool>
Whether a file whose column is the constant value can hold a match.
None when the range does not settle it.
Sourcepub fn set_constant(hints: &mut [Self], name: &str, value: &Scalar)
pub fn set_constant(hints: &mut [Self], name: &str, value: &Scalar)
Bind the hints of column name to its constant value in a file.
Trait Implementations§
Source§impl Clone for RuntimeRangeHint
impl Clone for RuntimeRangeHint
Source§fn clone(&self) -> RuntimeRangeHint
fn clone(&self) -> RuntimeRangeHint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for RuntimeRangeHint
impl !UnwindSafe for RuntimeRangeHint
impl Freeze for RuntimeRangeHint
impl Send for RuntimeRangeHint
impl Sync for RuntimeRangeHint
impl Unpin for RuntimeRangeHint
impl UnsafeUnpin for RuntimeRangeHint
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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