Trait SkipBatchPredicate

Source
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§

Source

fn schema(&self) -> &SchemaRef

Source

fn evaluate_with_stat_df(&self, df: &DataFrame) -> PolarsResult<Bitmap>

Provided Methods§

Source

fn can_skip_batch( &self, batch_size: IdxSize, live_columns: &PlIndexSet<PlSmallStr>, statistics: PlIndexMap<PlSmallStr, ColumnStatistics>, ) -> PolarsResult<bool>

Implementors§