pub trait PhysicalIoExpr: Send + Sync {
// Required methods
fn evaluate_io(&self, df: &DataFrame) -> PolarsResult<Series>;
fn live_variables(&self) -> Option<Vec<PlSmallStr>>;
// Provided method
fn as_stats_evaluator(&self) -> Option<&dyn StatsEvaluator> { ... }
}
Required Methods§
Sourcefn evaluate_io(&self, df: &DataFrame) -> PolarsResult<Series>
fn evaluate_io(&self, df: &DataFrame) -> PolarsResult<Series>
Sourcefn 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.
Provided Methods§
Sourcefn 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