Package org.apache.calcite.rex
Class RexVisitorImpl<R>
java.lang.Object
org.apache.calcite.rex.RexVisitorImpl<R>
- Type Parameters:
R
- Return type from eachvisitXxx
method.
- All Implemented Interfaces:
RexVisitor<R>
- Direct Known Subclasses:
ReduceExpressionsRule.ReducibleExprLocator
,RelOptUtil.InputFinder
,RexChecker
,RexUtil.FieldAccessFinder
,RexUtil.RexFinder
,RexUtil.SubQueryCollector
,RexUtil.SubQueryFinder
Default implementation of
RexVisitor
, which visits each node but does
nothing while it's there.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
visitArrayAnd
(RexVisitor<Boolean> visitor, List<RexNode> exprs) Visits an array of expressions, returning the logical 'and' of their results.static boolean
visitArrayOr
(RexVisitor<Boolean> visitor, List<RexNode> exprs) Visits an array of expressions, returning the logical 'or' of their results.visitCorrelVariable
(RexCorrelVariable correlVariable) visitDynamicParam
(RexDynamicParam dynamicParam) visitFieldAccess
(RexFieldAccess fieldAccess) visitInputRef
(RexInputRef inputRef) visitLambda
(RexLambda lambda) visitLambdaRef
(RexLambdaRef lambdaRef) visitLiteral
(RexLiteral literal) visitLocalRef
(RexLocalRef localRef) visitPatternFieldRef
(RexPatternFieldRef fieldRef) visitRangeRef
(RexRangeRef rangeRef) visitSubQuery
(RexSubQuery subQuery) 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
-
deep
protected final boolean deep
-
-
Constructor Details
-
RexVisitorImpl
protected RexVisitorImpl(boolean deep)
-
-
Method Details
-
visitInputRef
- Specified by:
visitInputRef
in interfaceRexVisitor<R>
-
visitLocalRef
- Specified by:
visitLocalRef
in interfaceRexVisitor<R>
-
visitLiteral
- Specified by:
visitLiteral
in interfaceRexVisitor<R>
-
visitOver
- Specified by:
visitOver
in interfaceRexVisitor<R>
-
visitCorrelVariable
- Specified by:
visitCorrelVariable
in interfaceRexVisitor<R>
-
visitCall
- Specified by:
visitCall
in interfaceRexVisitor<R>
-
visitDynamicParam
- Specified by:
visitDynamicParam
in interfaceRexVisitor<R>
-
visitRangeRef
- Specified by:
visitRangeRef
in interfaceRexVisitor<R>
-
visitFieldAccess
- Specified by:
visitFieldAccess
in interfaceRexVisitor<R>
-
visitSubQuery
- Specified by:
visitSubQuery
in interfaceRexVisitor<R>
-
visitTableInputRef
- Specified by:
visitTableInputRef
in interfaceRexVisitor<R>
-
visitPatternFieldRef
- Specified by:
visitPatternFieldRef
in interfaceRexVisitor<R>
-
visitLambda
- Specified by:
visitLambda
in interfaceRexVisitor<R>
-
visitLambdaRef
- Specified by:
visitLambdaRef
in interfaceRexVisitor<R>
-
visitArrayAnd
Visits an array of expressions, returning the logical 'and' of their results.If any of them returns false, returns false immediately; if they all return true, returns true.
-
visitArrayOr
Visits an array of expressions, returning the logical 'or' of their results.If any of them returns true, returns true immediately; if they all return false, returns false.
-