public class Lattice extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Lattice.Builder
Lattice builder.
|
static class |
Lattice.Column
Column in a lattice.
|
static class |
Lattice.Measure
Measure in a lattice.
|
static class |
Lattice.Node
Source relation of a lattice.
|
static class |
Lattice.Tile
Materialized aggregate within a lattice.
|
static class |
Lattice.TileBuilder
Tile builder.
|
| Modifier and Type | Field and Description |
|---|---|
boolean |
algorithm |
long |
algorithmMaxMillis |
boolean |
auto |
static Map<String,Integer> |
CARDINALITY_MAP |
com.google.common.collect.ImmutableList<Lattice.Column> |
columns |
com.google.common.collect.ImmutableList<Lattice.Measure> |
defaultMeasures |
com.google.common.collect.ImmutableList<Lattice.Node> |
nodes |
double |
rowCountEstimate |
com.google.common.collect.ImmutableList<Lattice.Tile> |
tiles |
com.google.common.collect.ImmutableList<String> |
uniqueColumnNames |
| Modifier and Type | Method and Description |
|---|---|
static Lattice.Builder |
builder(CalciteSchema calciteSchema,
String sql) |
Iterable<? extends Lattice.Tile> |
computeTiles() |
static Lattice |
create(CalciteSchema schema,
String sql,
boolean auto)
Creates a Lattice.
|
StarTable |
createStarTable() |
double |
getFactRowCount()
Returns an estimate of the number of rows in the un-aggregated star.
|
double |
getRowCount(List<Lattice.Column> columns)
Returns an estimate of the number of rows in the tile with the given
dimensions.
|
String |
sql(ImmutableBitSet groupSet,
List<Lattice.Measure> aggCallList) |
List<Lattice.Measure> |
toMeasures(List<AggregateCall> aggCallList) |
public final com.google.common.collect.ImmutableList<Lattice.Node> nodes
public final com.google.common.collect.ImmutableList<Lattice.Column> columns
public final boolean auto
public final boolean algorithm
public final long algorithmMaxMillis
public final double rowCountEstimate
public final com.google.common.collect.ImmutableList<Lattice.Measure> defaultMeasures
public final com.google.common.collect.ImmutableList<Lattice.Tile> tiles
public final com.google.common.collect.ImmutableList<String> uniqueColumnNames
public static Lattice create(CalciteSchema schema, String sql, boolean auto)
public String sql(ImmutableBitSet groupSet, List<Lattice.Measure> aggCallList)
public StarTable createStarTable()
public static Lattice.Builder builder(CalciteSchema calciteSchema, String sql)
public List<Lattice.Measure> toMeasures(List<AggregateCall> aggCallList)
public Iterable<? extends Lattice.Tile> computeTiles()
public double getFactRowCount()
public double getRowCount(List<Lattice.Column> columns)
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.