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

Constructor & Destructor Documentation

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 5005 of file SqlToRelConverter.java.

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)
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 5021 of file SqlToRelConverter.java.

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

Member Data Documentation

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

Definition at line 4996 of file SqlToRelConverter.java.


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