OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 2329 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 2340 of file SqlToRelConverter.java.

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

2340  {
2341  int i = input.getIndex() - rexCorrel.getType().getFieldCount();
2342  if (i < 0) {
2343  varCols.set(input.getIndex());
2344  return builder.makeFieldAccess(rexCorrel, input.getIndex());
2345  }
2346  return builder.makeInputRef(input.getType(), i);
2347  }

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


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