Trait mz_persist_types::stats::StatsFrom
source · pub trait StatsFrom<T> {
// Required method
fn stats_from(col: &T, validity: ValidityRef) -> Self;
}
Expand description
A source of aggregate statistics about a column of data.
Required Methods§
sourcefn stats_from(col: &T, validity: ValidityRef) -> Self
fn stats_from(col: &T, validity: ValidityRef) -> Self
Computes statistics from a column of data.
The validity, if given, indicates which values in the columns are and are not used for stats. This allows us to model non-nullable columns in a nullable struct. For optional columns (i.e. ones with their own validity) it must be a subset of the column’s validity, otherwise this panics.
Object Safety§
This trait is not object safe.