| Constructor and Description |
|---|
Lattice.Builder(CalciteSchema schema,
String sql) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMeasure(Lattice.Measure measure) |
void |
addTile(Lattice.Tile tile) |
Lattice.Builder |
algorithm(boolean algorithm)
Sets the "algorithm" attribute (default false).
|
Lattice.Builder |
algorithmMaxMillis(long algorithmMaxMillis)
Sets the "algorithmMaxMillis" attribute (default -1).
|
Lattice.Builder |
auto(boolean auto)
Sets the "auto" attribute (default true).
|
Lattice |
build()
Builds a lattice.
|
com.google.common.collect.ImmutableList<Lattice.Column> |
resolveArgs(Object args)
Resolves the arguments of a
JsonMeasure. |
Lattice.Column |
resolveColumn(Object name) |
Lattice.Measure |
resolveMeasure(String aggName,
Object args) |
Lattice.Builder |
rowCountEstimate(double rowCountEstimate)
Sets the "rowCountEstimate" attribute (default null).
|
public Lattice.Builder(CalciteSchema schema, String sql)
public Lattice.Builder auto(boolean auto)
public Lattice.Builder algorithm(boolean algorithm)
public Lattice.Builder algorithmMaxMillis(long algorithmMaxMillis)
public Lattice.Builder rowCountEstimate(double rowCountEstimate)
public Lattice build()
public com.google.common.collect.ImmutableList<Lattice.Column> resolveArgs(Object args)
JsonMeasure. They must either be null,
a string, or a list of strings. Throws if the structure is invalid, or if
any of the columns do not exist in the lattice.public Lattice.Column resolveColumn(Object name)
public Lattice.Measure resolveMeasure(String aggName, Object args)
public void addMeasure(Lattice.Measure measure)
public void addTile(Lattice.Tile tile)
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.