Package org.apache.calcite.plan
Class RelOptUtil.RexCorrelVariableMapShuttle
java.lang.Object
org.apache.calcite.rex.RexShuttle
org.apache.calcite.plan.RelOptUtil.RexCorrelVariableMapShuttle
- All Implemented Interfaces:
RexVisitor<RexNode>
- Enclosing class:
RelOptUtil
Updates correlate references in
RexNode expressions.-
Constructor Summary
ConstructorsConstructorDescriptionRexCorrelVariableMapShuttle(CorrelationId correlationId, RelDataType newCorrelRowType, Mapping mapping, RexBuilder rexBuilder) Constructs a RexCorrelVariableMapShuttle. -
Method Summary
Modifier and TypeMethodDescriptionvisitFieldAccess(RexFieldAccess fieldAccess) visitSubQuery(RexSubQuery subQuery) Methods inherited from class org.apache.calcite.rex.RexShuttle
apply, apply, mutate, visitArray, visitCall, visitCorrelVariable, visitDynamicParam, visitFieldCollations, visitInputRef, visitLambda, visitLambdaRef, visitList, visitLiteral, visitLocalRef, visitNodeAndFieldIndex, visitOver, visitOverAggFunction, visitPatternFieldRef, visitRangeRef, visitTableInputRef, visitWindowMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.calcite.rex.RexVisitor
visitEach, visitList, visitList
-
Constructor Details
-
RexCorrelVariableMapShuttle
public RexCorrelVariableMapShuttle(CorrelationId correlationId, RelDataType newCorrelRowType, Mapping mapping, RexBuilder rexBuilder) Constructs a RexCorrelVariableMapShuttle.- Parameters:
correlationId- The ID of the correlation variable to update.newCorrelRowType- The new row type for the correlate reference.mapping- Mapping to transform field indices.rexBuilder- A builder for constructing new RexNodes.
-
-
Method Details
-
visitFieldAccess
- Specified by:
visitFieldAccessin interfaceRexVisitor<RexNode>- Overrides:
visitFieldAccessin classRexShuttle
-
visitSubQuery
- Specified by:
visitSubQueryin interfaceRexVisitor<RexNode>- Overrides:
visitSubQueryin classRexShuttle
-