Package org.apache.calcite.plan
Class RelOptUtil.RexInputConverter
java.lang.Object
org.apache.calcite.rex.RexShuttle
org.apache.calcite.plan.RelOptUtil.RexInputConverter
- All Implemented Interfaces:
RexVisitor<RexNode>
- Enclosing class:
RelOptUtil
Walks an expression tree, converting the index of RexInputRefs based on
some adjustment factor.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final @Nullable List<RelDataTypeField>
protected final RexBuilder
-
Constructor Summary
ConstructorDescriptionRexInputConverter
(RexBuilder rexBuilder, @Nullable List<RelDataTypeField> srcFields, int[] adjustments) RexInputConverter
(RexBuilder rexBuilder, @Nullable List<RelDataTypeField> srcFields, @Nullable List<RelDataTypeField> destFields, int[] adjustments) RexInputConverter
(RexBuilder rexBuilder, @Nullable List<RelDataTypeField> srcFields, @Nullable List<RelDataTypeField> leftDestFields, @Nullable List<RelDataTypeField> rightDestFields, int[] adjustments) -
Method Summary
Methods inherited from class org.apache.calcite.rex.RexShuttle
apply, apply, mutate, visitArray, visitCall, visitCorrelVariable, visitDynamicParam, visitFieldAccess, visitFieldCollations, 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
-
Field Details
-
rexBuilder
-
destFields
-
-
Constructor Details
-
RexInputConverter
public RexInputConverter(RexBuilder rexBuilder, @Nullable List<RelDataTypeField> srcFields, @Nullable List<RelDataTypeField> leftDestFields, @Nullable List<RelDataTypeField> rightDestFields, int[] adjustments) -
RexInputConverter
public RexInputConverter(RexBuilder rexBuilder, @Nullable List<RelDataTypeField> srcFields, @Nullable List<RelDataTypeField> destFields, int[] adjustments) -
RexInputConverter
public RexInputConverter(RexBuilder rexBuilder, @Nullable List<RelDataTypeField> srcFields, int[] adjustments)
-
-
Method Details
-
visitInputRef
- Specified by:
visitInputRef
in interfaceRexVisitor<RexNode>
- Overrides:
visitInputRef
in classRexShuttle
-