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.
|
(package private) Map<String,RelNode> |
mapCorrelToRel
Maps name of correlating variable (e.g.
|
(package private) AtomicInteger |
nextCorrel |
private RelOptPlanner |
planner |
| Constructor and Description |
|---|
RelOptQuery(RelOptPlanner planner)
Deprecated.
|
RelOptQuery(RelOptPlanner planner,
AtomicInteger nextCorrel,
Map<String,RelNode> mapCorrelToRel)
For use by RelOptCluster only.
|
| Modifier and Type | Method and Description |
|---|---|
RelOptCluster |
createCluster(RelDataTypeFactory typeFactory,
RexBuilder rexBuilder)
Deprecated.
|
String |
createCorrel()
Deprecated.
|
static int |
getCorrelOrdinal(String correlName)
Deprecated.
|
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
final Map<String,RelNode> mapCorrelToRel
RelNode
which implements it.private final RelOptPlanner planner
final AtomicInteger nextCorrel
@Deprecated public RelOptQuery(RelOptPlanner planner)
planner - PlannerRelOptQuery(RelOptPlanner planner, AtomicInteger nextCorrel, Map<String,RelNode> mapCorrelToRel)
@Deprecated public static int getCorrelOrdinal(String correlName)
correlName - Name of correlating variable@Deprecated public RelOptCluster createCluster(RelDataTypeFactory typeFactory, RexBuilder rexBuilder)
typeFactory - Type factoryrexBuilder - Expression builder@Deprecated public String createCorrel()
RelOptCluster.createCorrel()public RelNode lookupCorrel(String name)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.