Package org.apache.calcite.rex
Class RexVisitorImpl<R>
java.lang.Object
org.apache.calcite.rex.RexVisitorImpl<R>
- Type Parameters:
R- Return type from eachvisitXxxmethod.
- 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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanvisitArrayAnd(RexVisitor<Boolean> visitor, List<RexNode> exprs) Visits an array of expressions, returning the logical 'and' of their results.static booleanvisitArrayOr(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, waitMethods 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:
visitInputRefin interfaceRexVisitor<R>
-
visitLocalRef
- Specified by:
visitLocalRefin interfaceRexVisitor<R>
-
visitLiteral
- Specified by:
visitLiteralin interfaceRexVisitor<R>
-
visitOver
- Specified by:
visitOverin interfaceRexVisitor<R>
-
visitCorrelVariable
- Specified by:
visitCorrelVariablein interfaceRexVisitor<R>
-
visitCall
- Specified by:
visitCallin interfaceRexVisitor<R>
-
visitDynamicParam
- Specified by:
visitDynamicParamin interfaceRexVisitor<R>
-
visitRangeRef
- Specified by:
visitRangeRefin interfaceRexVisitor<R>
-
visitFieldAccess
- Specified by:
visitFieldAccessin interfaceRexVisitor<R>
-
visitSubQuery
- Specified by:
visitSubQueryin interfaceRexVisitor<R>
-
visitTableInputRef
- Specified by:
visitTableInputRefin interfaceRexVisitor<R>
-
visitPatternFieldRef
- Specified by:
visitPatternFieldRefin interfaceRexVisitor<R>
-
visitLambda
- Specified by:
visitLambdain interfaceRexVisitor<R>
-
visitLambdaRef
- Specified by:
visitLambdaRefin 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.
-