private static class SqlToRelConverter.LookupContext extends Object
| Modifier and Type | Field and Description |
|---|---|
private List<Pair<RelNode,Integer>> |
relOffsetList |
| Constructor and Description |
|---|
LookupContext(SqlToRelConverter.Blackboard bb,
List<RelNode> rels,
int systemFieldCount)
Creates a LookupContext with multiple input relational expressions.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) Pair<RelNode,Integer> |
findRel(int offset)
Returns the relational expression with a given offset, and the
ordinal in the combined row of its first field.
|
LookupContext(SqlToRelConverter.Blackboard bb, List<RelNode> rels, int systemFieldCount)
bb - Context for translating this sub-queryrels - Relational expressionssystemFieldCount - Number of system fieldsPair<RelNode,Integer> findRel(int offset)
For example, in Emp JOIN Dept, findRel(1) returns the
relational expression for Dept and offset 6 (because
Emp has 6 fields, therefore the first field of Dept
is field 6.
offset - Offset of relational expression in FROM clauseCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.