pub trait SkipBatchPredicate: Send + Sync {
// Required methods
fn schema(&self) -> &SchemaRef;
fn evaluate_with_stat_df(&self, df: &DataFrame) -> PolarsResult<Bitmap>;
// Provided method
fn can_skip_batch(
&self,
batch_size: IdxSize,
live_columns: &PlIndexSet<PlSmallStr>,
statistics: PlIndexMap<PlSmallStr, ColumnStatistics>,
) -> PolarsResult<bool> { ... }
}Required Methods§
fn schema(&self) -> &SchemaRef
fn evaluate_with_stat_df(&self, df: &DataFrame) -> PolarsResult<Bitmap>
Provided Methods§
fn can_skip_batch( &self, batch_size: IdxSize, live_columns: &PlIndexSet<PlSmallStr>, statistics: PlIndexMap<PlSmallStr, ColumnStatistics>, ) -> PolarsResult<bool>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".