| Interface | Description |
|---|---|
| LatticeStatisticProvider |
Estimates row counts for a lattice and its attributes.
|
| LatticeStatisticProvider.Factory |
Creates a
LatticeStatisticProvider for a given
Lattice. |
| MaterializationService.TableFactory |
Creates tables that represent a materialized view.
|
| Class | Description |
|---|---|
| CachingLatticeStatisticProvider |
Implementation of
LatticeStatisticProvider that caches single-column
statistics and computes multi-column statistics from these. |
| DelegatingLatticeStatisticProvider |
Implementation of
LatticeStatisticProvider that delegates
to an underlying provider. |
| Lattice |
Structure that allows materialized views based upon a star schema to be
recognized and recommended.
|
| Lattice.Builder |
Lattice builder.
|
| Lattice.Column |
Column in a lattice.
|
| Lattice.Edge |
Edge in the temporary graph.
|
| Lattice.Measure |
Measure in a lattice.
|
| Lattice.Node |
Source relation of a lattice.
|
| Lattice.Tile |
Materialized aggregate within a lattice.
|
| Lattice.TileBuilder |
Tile builder.
|
| Lattices |
Utilities for
Lattice, LatticeStatisticProvider. |
| MaterializationActor |
Actor that manages the state of materializations in the system.
|
| MaterializationActor.Materialization |
A query materialized in a table, so that reading from the table gives the
same results as executing the query.
|
| MaterializationActor.QueryKey |
A materialization can be re-used if it is the same SQL, on the same
schema, with the same path for resolving functions.
|
| MaterializationKey |
Unique identifier for a materialization.
|
| MaterializationService |
Manages the collection of materialized tables known to the system,
and the process by which they become valid and invalid.
|
| MaterializationService.DefaultTableFactory |
Default implementation of
MaterializationService.TableFactory. |
| ProfilerLatticeStatisticProvider |
Implementation of
LatticeStatisticProvider that uses a
Profiler. |
| SqlLatticeStatisticProvider |
Implementation of
LatticeStatisticProvider that gets statistics by
executing "SELECT COUNT(DISTINCT ...) ..." SQL queries. |
| TileKey |
Definition of a particular combination of dimensions and measures of a
lattice that is the basis of a materialization.
|
| TileSuggester |
Algorithm that suggests a set of initial tiles (materialized aggregate views)
for a given lattice.
|
| TileSuggester.AttributeImpl |
Implementation of
Attribute based on a Lattice.Column. |
| TileSuggester.SchemaImpl |
Implementation of
Schema based on a Lattice. |
| TileSuggester.StatisticsProviderImpl |
Implementation of
StatisticsProvider
that asks the lattice. |
| TileSuggester.TableImpl |
Implementation of
Table based on a Lattice. |
An actor (MaterializationActor)
maintains the state of all
materializations in the system and is wrapped in a service
(MaterializationService)
for access from other parts of the system.
Optimizer rules allow Calcite to rewrite queries using materializations, if they are valid (that is, contain the same result as executing their defining query) and lower cost.
In future, the actor may manage the process of updating materializations, instantiating materializations from the intermediate results of queries, and recognize what materializations would be useful based on actual query load.
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.