OmniSciDB  04ee39c94c
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 4949 of file

Constructor & Destructor Documentation

◆ LookupContext()

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 4959 of file

References org.apache.calcite.sql2rel.SqlToRelConverter.Blackboard.flatten().

4959  {
4960  bb.flatten(rels, systemFieldCount, new int[] {0}, relOffsetList);
4961  }
+ Here is the call graph for this function:

Member Function Documentation

◆ findRel()

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 4975 of file

Referenced by org.apache.calcite.sql2rel.SqlToRelConverter.Blackboard.lookup().

4975  {
4976  return relOffsetList.get(offset);
4977  }
+ Here is the caller graph for this function:

Member Data Documentation

◆ relOffsetList

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

Definition at line 4950 of file

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