public class LatticeSuggester extends Object
| Constructor and Description |
|---|
LatticeSuggester(FrameworkConfig config)
Creates a LatticeSuggester.
|
| Modifier and Type | Method and Description |
|---|---|
List<Lattice> |
addQuery(RelNode r)
Adds a query.
|
Set<Lattice> |
getLatticeSet()
Returns the minimal set of lattices necessary to cover all of the queries
seen.
|
RexNode |
toRex(LatticeTable table,
int column)
Converts a column reference to an expression.
|
public LatticeSuggester(FrameworkConfig config)
public Set<Lattice> getLatticeSet()
public RexNode toRex(LatticeTable table, int column)
public List<Lattice> addQuery(RelNode r)
It may fit within an existing lattice (or lattices). Or it may need a new lattice, or an extension to an existing lattice.
r - Relational expression for a queryCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.