Package org.apache.calcite.rel.rules
Class SubQueryRemoveRule.ReplaceSubQueryShuttle
- java.lang.Object
-
- org.apache.calcite.rex.RexShuttle
-
- org.apache.calcite.rel.rules.SubQueryRemoveRule.ReplaceSubQueryShuttle
-
- All Implemented Interfaces:
RexVisitor<RexNode>
- Enclosing class:
- SubQueryRemoveRule
private static class SubQueryRemoveRule.ReplaceSubQueryShuttle extends RexShuttle
Shuttle that replaces occurrences of a givenRexSubQuery
with a replacement expression.
-
-
Field Summary
Fields Modifier and Type Field Description private RexNode
replacement
private RexSubQuery
subQuery
-
Constructor Summary
Constructors Constructor Description ReplaceSubQueryShuttle(RexSubQuery subQuery, RexNode replacement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RexNode
visitSubQuery(RexSubQuery subQuery)
-
Methods inherited from class org.apache.calcite.rex.RexShuttle
apply, apply, apply, mutate, visitArray, visitCall, visitCorrelVariable, visitDynamicParam, visitFieldAccess, visitFieldCollations, visitInputRef, visitList, visitList, visitLiteral, visitLocalRef, visitOver, visitPatternFieldRef, visitRangeRef, visitTableInputRef, visitWindow
-
-
-
-
Field Detail
-
subQuery
private final RexSubQuery subQuery
-
replacement
private final RexNode replacement
-
-
Constructor Detail
-
ReplaceSubQueryShuttle
ReplaceSubQueryShuttle(RexSubQuery subQuery, RexNode replacement)
-
-
Method Detail
-
visitSubQuery
public RexNode visitSubQuery(RexSubQuery subQuery)
- Specified by:
visitSubQuery
in interfaceRexVisitor<RexNode>
- Overrides:
visitSubQuery
in classRexShuttle
-
-