pub fn read_filter(
        &self,
        columns: &[ColumnName<'_>],
        predicates: &Predicate,
    ) -> ReadFilterResult<'_> {
        let select_columns = self.meta.schema_for_column_names(&columns);
        assert_eq!(select_columns.len(), columns.len());

        let schema = ResultSchema {
            select_columns,
            ..Default::default()
        };

        // apply predicates to determine candidate rows.
        let row_ids = self.row_ids_from_predicate(predicates);
        let col_data = self.materialise_rows(columns, row_ids);
        ReadFilterResult {
            schema,
            data: col_data,
        }
    }
/// Returns a set of materialised column values that optionally satisfy a
/// predicate.
///
/// TODO(edd): this should probably return an Option and the caller can
/// filter None results.
Returns a set of materialised column values that optionally satisfy a
predicate.

this should probably return an Option and the caller can
filter None results.
Returns a set of materialised column values that optionally satisfy a predicate . this should probably return an Option and the caller can filter None results .
pub fn read_filter(
        &self,
        columns: &[ColumnName<'_>],
        predicates: &Predicate,
    ) -> ReadFilterResult<'_> {
        let select_columns = self.meta.schema_for_column_names(&columns);
        assert_eq!(select_columns.len(), columns.len());
        let schema = ResultSchema {
            select_columns,
            ..Default::default()
        };
        // apply predicates to determine candidate rows.
        let row_ids = self.row_ids_from_predicate(predicates);
        let col_data = self.materialise_rows(columns, row_ids);
        ReadFilterResult {
            schema,
            data: col_data,
        }
    }
pub fn read_filter ( & self , columns : & [ ColumnName < ' _ > ] , predicates : & Predicate , ) -> ReadFilterResult < ' _ > { let select_columns = self . meta . schema_for_column_names ( & columns ) ; assert_eq ! ( select_columns len ( ) columns len ( ) ) ; let schema = ResultSchema { select_columns , .. Default :: default ( ) } ; // apply predicates to determine candidate rows. let row_ids = self . row_ids_from_predicate ( predicates ) ; let col_data = self . materialise_rows ( columns , row_ids ) ; ReadFilterResult { schema , data : col_data , } }
Returns a set of materialised column values that optionally satisfy a
predicate.
Returns a set of materialised column values that optionally satisfy a predicate .
&self
columns
&[ColumnName<'_>]
predicates
&Predicate
&self
columns
&[ColumnName<'_>]
predicates
&Predicate