OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
org.apache.calcite.sql2rel.SqlToRelConverter.LookupContext Class Reference
+ Collaboration diagram for org.apache.calcite.sql2rel.SqlToRelConverter.LookupContext:

Package Functions

 LookupContext (Blackboard bb, List< RelNode > rels, int systemFieldCount)
Pair< RelNode, Integer > findRel (int offset)

Private Attributes

final List< Pair< RelNode,
Integer > > 
relOffsetList = new ArrayList<>()

Detailed Description

Context to find a relational expression to a field offset.

Definition at line 4995 of file

Constructor & Destructor Documentation

org.apache.calcite.sql2rel.SqlToRelConverter.LookupContext.LookupContext ( Blackboard  bb,
List< RelNode >  rels,
int  systemFieldCount 

Creates a LookupContext with multiple input relational expressions.

bbContext for translating this sub-query
relsRelational expressions
systemFieldCountNumber of system fields

Definition at line 5005 of file

5005  {
5006  bb.flatten(rels, systemFieldCount, new int[] {0}, relOffsetList);
5007  }

Member Function Documentation

Pair<RelNode, Integer> org.apache.calcite.sql2rel.SqlToRelConverter.LookupContext.findRel ( int  offset)

Returns the relational expression with a given offset, and the ordinal in the combined row of its first field.

For example, in

Emp JOIN Dept

, findRel(1) returns the relational expression for


and offset 6 (because


has 6 fields, therefore the first field of


is field 6.

offsetOffset of relational expression in FROM clause
Relational expression and the ordinal of its first field

Definition at line 5021 of file

5021  {
5022  return relOffsetList.get(offset);
5023  }

Member Data Documentation

final List<Pair<RelNode, Integer> > org.apache.calcite.sql2rel.SqlToRelConverter.LookupContext.relOffsetList = new ArrayList<>()

Definition at line 4996 of file

The documentation for this class was generated from the following file: