public class RelOptQuery extends Object
RelOptQuery represents a set of
relational expressions which derive from the same
select statement.| Modifier and Type | Field and Description |
|---|---|
static String |
CORREL_PREFIX
Prefix to the name of correlating variables.
|
| Constructor and Description |
|---|
RelOptQuery(RelOptPlanner planner)
Creates a query.
|
| Modifier and Type | Method and Description |
|---|---|
RelOptCluster |
createCluster(RelDataTypeFactory typeFactory,
RexBuilder rexBuilder)
Creates a cluster.
|
String |
createCorrel()
Constructs a new name for a correlating variable.
|
static int |
getCorrelOrdinal(String correlName)
Converts a correlating variable name into an ordinal, unqiue within the
query.
|
RelNode |
lookupCorrel(String name)
Returns the relational expression which populates a correlating variable.
|
void |
mapCorrel(String name,
RelNode rel)
Maps a correlating variable to a
RelNode. |
public static final String CORREL_PREFIX
public RelOptQuery(RelOptPlanner planner)
planner - Plannerpublic static int getCorrelOrdinal(String correlName)
correlName - Name of correlating variablepublic RelOptCluster createCluster(RelDataTypeFactory typeFactory, RexBuilder rexBuilder)
typeFactory - Type factoryrexBuilder - Expression builderpublic String createCorrel()
public RelNode lookupCorrel(String name)
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.