OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
org.apache.calcite.sql2rel.SqlToRelConverter.RexAccessShuttle Class Reference
+ Inheritance diagram for org.apache.calcite.sql2rel.SqlToRelConverter.RexAccessShuttle:
+ Collaboration diagram for org.apache.calcite.sql2rel.SqlToRelConverter.RexAccessShuttle:

Public Member Functions

RexNode visitInputRef (RexInputRef input)
 

Package Functions

 RexAccessShuttle (RexBuilder builder, RexCorrelVariable rexCorrel)
 

Private Attributes

final RexBuilder builder
 
final RexCorrelVariable rexCorrel
 
final BitSet varCols = new BitSet()
 

Detailed Description

Shuttle that replace outer RexInputRef with RexFieldAccess, and adjust

offset

to each inner RexInputRef in the lateral join condition.

Definition at line 2438 of file SqlToRelConverter.java.

Constructor & Destructor Documentation

org.apache.calcite.sql2rel.SqlToRelConverter.RexAccessShuttle.RexAccessShuttle ( RexBuilder  builder,
RexCorrelVariable  rexCorrel 
)
inlinepackage

Member Function Documentation

RexNode org.apache.calcite.sql2rel.SqlToRelConverter.RexAccessShuttle.visitInputRef ( RexInputRef  input)
inline

Definition at line 2449 of file SqlToRelConverter.java.

References org.apache.calcite.sql2rel.SqlToRelConverter.RexAccessShuttle.rexCorrel.

2449  {
2450  int i = input.getIndex() - rexCorrel.getType().getFieldCount();
2451  if (i < 0) {
2452  varCols.set(input.getIndex());
2453  return builder.makeFieldAccess(rexCorrel, input.getIndex());
2454  }
2455  return builder.makeInputRef(input.getType(), i);
2456  }

Member Data Documentation

final RexBuilder org.apache.calcite.sql2rel.SqlToRelConverter.RexAccessShuttle.builder
private
final RexCorrelVariable org.apache.calcite.sql2rel.SqlToRelConverter.RexAccessShuttle.rexCorrel
private
final BitSet org.apache.calcite.sql2rel.SqlToRelConverter.RexAccessShuttle.varCols = new BitSet()
private

Definition at line 2441 of file SqlToRelConverter.java.


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