pub trait StatsCatalog {
// Provided method
fn stats_ref(
&mut self,
_field_path: &FieldPath,
_stat: Stat,
) -> Option<ExprRef> { ... }
}
Expand description
A catalog of available stats that are associated with field paths.
Provided Methods§
Sourcefn stats_ref(&mut self, _field_path: &FieldPath, _stat: Stat) -> Option<ExprRef>
fn stats_ref(&mut self, _field_path: &FieldPath, _stat: Stat) -> Option<ExprRef>
Given a field path and statistic, return an expression that when evaluated over the catalog will return that stat for the referenced field.
This is likely to be a column expression, or a literal.
Returns None
if the stat is not available for the field path.