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 SqlToRelConverter.java.

Constructor & Destructor Documentation

◆ LookupContext()

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

Creates a LookupContext with multiple input relational expressions.

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

Definition at line 4959 of file SqlToRelConverter.java.

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)
inlinepackage

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

Dept

and offset 6 (because

Emp

has 6 fields, therefore the first field of

Dept

is field 6.

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

Definition at line 4975 of file SqlToRelConverter.java.

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<>()
private

Definition at line 4950 of file SqlToRelConverter.java.


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