pub struct PhysicalIoHelper {
pub expr: Arc<dyn PhysicalExpr>,
pub has_window_function: bool,
}
Expand description
Wrapper struct that allow us to use a PhysicalExpr in polars-io.
This is used to filter rows during the scan of file.
Fields§
§expr: Arc<dyn PhysicalExpr>
§has_window_function: bool
Trait Implementations§
Source§impl PhysicalIoExpr for PhysicalIoHelper
impl PhysicalIoExpr for PhysicalIoHelper
Source§fn evaluate_io(&self, df: &DataFrame) -> PolarsResult<Series>
fn evaluate_io(&self, df: &DataFrame) -> PolarsResult<Series>
Source§fn live_variables(&self) -> Option<Vec<PlSmallStr>>
fn live_variables(&self) -> Option<Vec<PlSmallStr>>
Get the variables that are used in the expression i.e. live variables.
This can contain duplicates.
Source§fn as_stats_evaluator(&self) -> Option<&dyn StatsEvaluator>
fn as_stats_evaluator(&self) -> Option<&dyn StatsEvaluator>
Can take &dyn Statistics and determine of a file should be
read ->
true
or not -> false
Auto Trait Implementations§
impl Freeze for PhysicalIoHelper
impl !RefUnwindSafe for PhysicalIoHelper
impl Send for PhysicalIoHelper
impl Sync for PhysicalIoHelper
impl Unpin for PhysicalIoHelper
impl !UnwindSafe for PhysicalIoHelper
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> 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