Package | Description |
---|---|
org.apache.calcite.materialize |
Management of materialized query results.
|
org.apache.calcite.plan |
Defines interfaces for constructing rule-based optimizers of
relational expressions.
|
org.apache.calcite.rel.rules |
Provides a core set of planner rules.
|
Modifier and Type | Field and Description |
---|---|
com.google.common.collect.ImmutableList<Lattice.Measure> |
Lattice.defaultMeasures |
private java.util.SortedSet<Lattice.Measure> |
Lattice.Builder.defaultMeasureSet |
private java.util.List<Lattice.Measure> |
Lattice.TileBuilder.measureBuilder |
com.google.common.collect.ImmutableList<Lattice.Measure> |
TileKey.measures |
com.google.common.collect.ImmutableList<Lattice.Measure> |
Lattice.Tile.measures |
Modifier and Type | Method and Description |
---|---|
(package private) Lattice.Measure |
Lattice.Measure.copy(java.util.function.Function<Lattice.Column,Lattice.Column> mapper)
Copies this measure, mapping its arguments using a given function.
|
Lattice.Measure |
Lattice.Builder.resolveMeasure(java.lang.String aggName,
boolean distinct,
java.lang.Object args) |
private Lattice.Measure |
Lattice.toMeasure(AggregateCall aggCall) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Lattice.Measure> |
Lattice.toMeasures(java.util.List<AggregateCall> aggCallList) |
Modifier and Type | Method and Description |
---|---|
boolean |
Lattice.Builder.addMeasure(Lattice.Measure measure)
Adds a measure, if it does not already exist.
|
void |
Lattice.TileBuilder.addMeasure(Lattice.Measure measure) |
int |
Lattice.Measure.compareTo(Lattice.Measure measure) |
Modifier and Type | Method and Description |
---|---|
private boolean |
MaterializationService.allSatisfiable(java.util.List<Lattice.Measure> measureList,
TileKey tileKey) |
Pair<CalciteSchema.TableEntry,TileKey> |
MaterializationService.defineTile(Lattice lattice,
ImmutableBitSet groupSet,
java.util.List<Lattice.Measure> measureList,
CalciteSchema schema,
boolean create,
boolean exact)
Defines a tile.
|
Pair<CalciteSchema.TableEntry,TileKey> |
MaterializationService.defineTile(Lattice lattice,
ImmutableBitSet groupSet,
java.util.List<Lattice.Measure> measureList,
CalciteSchema schema,
boolean create,
boolean exact,
java.lang.String suggestedTableName,
MaterializationService.TableFactory tableFactory) |
java.lang.String |
Lattice.sql(ImmutableBitSet groupSet,
boolean group,
java.util.List<Lattice.Measure> aggCallList)
Generates a SQL query to populate a tile of the lattice specified by a
given set of columns and measures, optionally grouping.
|
java.lang.String |
Lattice.sql(ImmutableBitSet groupSet,
java.util.List<Lattice.Measure> aggCallList)
Generates a SQL query to populate a tile of the lattice specified by a
given set of columns and measures.
|
Constructor and Description |
---|
Lattice(CalciteSchema rootSchema,
LatticeRootNode rootNode,
boolean auto,
boolean algorithm,
long algorithmMaxMillis,
LatticeStatisticProvider.Factory statisticProviderFactory,
java.lang.Double rowCountEstimate,
com.google.common.collect.ImmutableList<Lattice.Column> columns,
com.google.common.collect.ImmutableSortedSet<Lattice.Measure> defaultMeasures,
com.google.common.collect.ImmutableList<Lattice.Tile> tiles) |
Tile(com.google.common.collect.ImmutableList<Lattice.Measure> measures,
com.google.common.collect.ImmutableList<Lattice.Column> dimensions) |
TileKey(Lattice lattice,
ImmutableBitSet dimensions,
com.google.common.collect.ImmutableList<Lattice.Measure> measures)
Creates a TileKey.
|
Modifier and Type | Method and Description |
---|---|
Pair<CalciteSchema.TableEntry,TileKey> |
RelOptLattice.getAggregate(RelOptPlanner planner,
ImmutableBitSet groupSet,
java.util.List<Lattice.Measure> measureList)
Retrieves a materialized table that will satisfy an aggregate query on
the star table.
|
Modifier and Type | Method and Description |
---|---|
private static int |
AggregateStarTableRule.find(com.google.common.collect.ImmutableList<Lattice.Measure> measures,
Pair<SqlAggFunction,java.util.List<java.lang.Integer>> seek) |
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.