Package org.apache.calcite.rel.rules
Class ProjectCorrelateTransposeRule.RexFieldAccessReplacer
java.lang.Object
org.apache.calcite.rex.RexShuttle
org.apache.calcite.rel.rules.ProjectCorrelateTransposeRule.RexFieldAccessReplacer
- All Implemented Interfaces:
RexVisitor<RexNode>
- Enclosing class:
ProjectCorrelateTransposeRule
Visitor for RexNodes which replaces
RexCorrelVariable
with specified.-
Constructor Summary
ConstructorDescriptionRexFieldAccessReplacer
(CorrelationId rexCorrelVariableToReplace, RexCorrelVariable rexCorrelVariable, RexBuilder builder, Map<Integer, Integer> requiredColsMap) -
Method Summary
Modifier and TypeMethodDescriptionvisitCorrelVariable
(RexCorrelVariable variable) visitFieldAccess
(RexFieldAccess fieldAccess) Methods inherited from class org.apache.calcite.rex.RexShuttle
apply, apply, mutate, visitArray, visitCall, visitDynamicParam, visitFieldCollations, visitInputRef, visitLambda, visitLambdaRef, visitList, visitLiteral, visitLocalRef, visitOver, visitOverAggFunction, visitPatternFieldRef, visitRangeRef, visitSubQuery, visitTableInputRef, visitWindow
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.calcite.rex.RexVisitor
visitEach, visitList, visitList
-
Constructor Details
-
RexFieldAccessReplacer
public RexFieldAccessReplacer(CorrelationId rexCorrelVariableToReplace, RexCorrelVariable rexCorrelVariable, RexBuilder builder, Map<Integer, Integer> requiredColsMap)
-
-
Method Details
-
visitCorrelVariable
- Specified by:
visitCorrelVariable
in interfaceRexVisitor<RexNode>
- Overrides:
visitCorrelVariable
in classRexShuttle
-
visitFieldAccess
- Specified by:
visitFieldAccess
in interfaceRexVisitor<RexNode>
- Overrides:
visitFieldAccess
in classRexShuttle
-