Package org.apache.calcite.rex
Class RexUtil.RexFinder
- All Implemented Interfaces:
RexVisitor<Void>
- Enclosing class:
RexUtil
Visitor that tells whether a node matching a particular description exists
in a tree.
-
Field Summary
Fields inherited from class org.apache.calcite.rex.RexVisitorImpl
deep -
Method Summary
Modifier and TypeMethodDescriptionbooleananyContain(Iterable<? extends RexNode> nodes) Returns whether any of the given expressions contain what this RexFinder seeks.booleanReturns whether the given expression contains what this RexFinder seeks.booleanReturns whether aCalccontains the kind of expression we seek.booleanReturns whether aFiltercontains the kind of expression we seek.booleanReturns whether aJoincontains the kind of expression we seek.booleaninProgram(RexProgram program) Returns whether aRexProgramcontains the kind of expression we seek.booleanReturns whether aProjectcontains the kind of expression we seek.booleanReturns notinCalc(Calc).booleannotInFilter(Filter filter) Returns notinFilter(Filter).booleanReturns notinJoin(Join).booleannotInProject(Project project) Returns notinProject(Project).Methods inherited from class org.apache.calcite.rex.RexVisitorImpl
visitArrayAnd, visitArrayOr, visitCall, visitCorrelVariable, visitDynamicParam, visitFieldAccess, visitInputRef, visitLambda, visitLambdaRef, visitLiteral, visitLocalRef, visitOver, visitPatternFieldRef, visitRangeRef, visitSubQuery, visitTableInputRefMethods 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
-
Method Details
-
inProject
Returns whether aProjectcontains the kind of expression we seek. -
notInProject
Returns notinProject(Project). -
inFilter
Returns whether aFiltercontains the kind of expression we seek. -
notInFilter
Returns notinFilter(Filter). -
inCalc
Returns whether aCalccontains the kind of expression we seek. -
notInCalc
Returns notinCalc(Calc). -
inProgram
Returns whether aRexProgramcontains the kind of expression we seek. -
inJoin
Returns whether aJoincontains the kind of expression we seek. -
notInJoin
Returns notinJoin(Join). -
contains
Returns whether the given expression contains what this RexFinder seeks. -
anyContain
Returns whether any of the given expressions contain what this RexFinder seeks.
-