Package org.apache.calcite.plan
Class RelOptUtil.VariableUsedVisitor
java.lang.Object
org.apache.calcite.rex.RexShuttle
org.apache.calcite.plan.RelOptUtil.VariableUsedVisitor
- All Implemented Interfaces:
RexVisitor<RexNode>
- Enclosing class:
RelOptUtil
Visitor that finds all variables used in an expression.
-
Field Summary
Modifier and TypeFieldDescriptionfinal com.google.common.collect.Multimap<CorrelationId,
Integer> final Set<CorrelationId>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvisitFieldAccess
(RexFieldAccess fieldAccess) visitSubQuery
(RexSubQuery subQuery) 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, 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
-
variables
-
variableFields
-
-
Constructor Details
-
VariableUsedVisitor
-
-
Method Details
-
visitCorrelVariable
- Specified by:
visitCorrelVariable
in interfaceRexVisitor<RexNode>
- Overrides:
visitCorrelVariable
in classRexShuttle
-
visitFieldAccess
- Specified by:
visitFieldAccess
in interfaceRexVisitor<RexNode>
- Overrides:
visitFieldAccess
in classRexShuttle
-
visitSubQuery
- Specified by:
visitSubQuery
in interfaceRexVisitor<RexNode>
- Overrides:
visitSubQuery
in classRexShuttle
-