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 TypeMethodDescriptionboolean
anyContain
(Iterable<? extends RexNode> nodes) Returns whether any of the given expressions contain what this RexFinder seeks.boolean
Returns whether the given expression contains what this RexFinder seeks.boolean
Returns whether aCalc
contains the kind of expression we seek.boolean
Returns whether aFilter
contains the kind of expression we seek.boolean
Returns whether aJoin
contains the kind of expression we seek.boolean
inProgram
(RexProgram program) Returns whether aRexProgram
contains the kind of expression we seek.boolean
Returns whether aProject
contains the kind of expression we seek.boolean
Returns notinCalc(Calc)
.boolean
notInFilter
(Filter filter) Returns notinFilter(Filter)
.boolean
Returns notinJoin(Join)
.boolean
notInProject
(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, visitTableInputRef
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
-
Method Details
-
inProject
Returns whether aProject
contains the kind of expression we seek. -
notInProject
Returns notinProject(Project)
. -
inFilter
Returns whether aFilter
contains the kind of expression we seek. -
notInFilter
Returns notinFilter(Filter)
. -
inCalc
Returns whether aCalc
contains the kind of expression we seek. -
notInCalc
Returns notinCalc(Calc)
. -
inProgram
Returns whether aRexProgram
contains the kind of expression we seek. -
inJoin
Returns whether aJoin
contains 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.
-