public class RelOptLattice extends Object
| Modifier and Type | Field and Description |
|---|---|
Lattice |
lattice |
RelOptTable |
starRelOptTable |
| Constructor and Description |
|---|
RelOptLattice(Lattice lattice,
RelOptTable starRelOptTable) |
| Modifier and Type | Method and Description |
|---|---|
Pair<CalciteSchema.TableEntry,TileKey> |
getAggregate(RelOptPlanner planner,
ImmutableBitSet groupSet,
List<Lattice.Measure> measureList)
Retrieves a materialized table that will satisfy an aggregate query on
the star table.
|
RelNode |
rewrite(RelNode node)
Rewrites a relational expression to use a lattice.
|
RelOptTable |
rootTable() |
public final Lattice lattice
public final RelOptTable starRelOptTable
public RelOptLattice(Lattice lattice, RelOptTable starRelOptTable)
public RelOptTable rootTable()
public RelNode rewrite(RelNode node)
Returns null if a rewrite is not possible.
node - Relational expressionpublic Pair<CalciteSchema.TableEntry,TileKey> getAggregate(RelOptPlanner planner, ImmutableBitSet groupSet, List<Lattice.Measure> measureList)
The current implementation creates a materialization and populates it,
provided that Lattice.auto is true.
Future implementations might return materializations at a different level of aggregation, from which the desired result can be obtained by rolling up.
planner - Current plannergroupSet - Grouping keymeasureList - Calls to aggregate functionsCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.