atoti.AggregateProvider(An aggregate provider pre-aggregates some measures up to certain levels. If a step of a query uses a subset of the aggregate provider’s levels and measures, the provider will speed up the query. An aggregate provider uses additional memory to store the intermediate aggregates. The more levels and measures are added, the more memory it requires.
*,
filter: AggregateProviderFilterCondition | None =None,
key: AggregateProviderPluginKey ='leaf',
levels: Annotated[AbstractSet[Identifiable[LevelIdentifier]], Field(min_length=1), AfterValidator(validate_hierarchy_unicity)] | None =None,
measures: Annotated[AbstractSet[Identifiable[MeasureIdentifier]], Field(min_length=1)] | None =None,
partitioning: str | None =None,
)
Attributes
filter
Only compute and provide aggregates matching this condition.key
The key of the provider. The bitmap is generally faster but also takes more memory.levels
The levels to build the provider on. If a passed level is part of a multilevel hierarchy, all shallower levels will be pre-aggregated too. IfNone, all eligible levels will be pre-aggregated.
measures
The measures to build the provider on. IfNone, all eligible measures will be pre-aggregated.
This collection cannot contain any measure created from a column in a
partially joined table.