public class JsonLattice extends Object
Description of schema elements| Modifier and Type | Field and Description |
|---|---|
boolean |
algorithm
Whether to use an algorithm to suggest aggregates.
|
long |
algorithmMaxMillis
Maximum time to run the algorithm.
|
boolean |
auto
Whether to create in-memory materialized aggregates on demand.
|
List<JsonMeasure> |
defaultMeasures
List of measures that a tile should have by default.
|
String |
name |
Double |
rowCountEstimate
Estimated number of rows.
|
Object |
sql
SQL query that defines the lattice.
|
List<JsonTile> |
tiles
List of materialized aggregates to create up front.
|
| Constructor and Description |
|---|
JsonLattice() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ModelHandler handler) |
String |
getSql()
Returns the SQL query as a string, concatenating a list of lines if
necessary.
|
String |
toString() |
void |
visitChildren(ModelHandler modelHandler) |
public String name
public Object sql
Must be a string or a list of strings (which are concatenated separated by newlines).
public boolean auto
Default is true.
public boolean algorithm
Default is false.
public long algorithmMaxMillis
public Double rowCountEstimate
If null, Calcite will a query to find the real value.
public List<JsonMeasure> defaultMeasures
A tile can define its own measures, including measures not in this list.
The default list is just count.
public void accept(ModelHandler handler)
public String getSql()
public void visitChildren(ModelHandler modelHandler)
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.