Package org.apache.calcite.rex
Class RexUtil.RexFinder
java.lang.Object
org.apache.calcite.rex.RexVisitorImpl<Void>
org.apache.calcite.rex.RexUtil.RexFinder
- All Implemented Interfaces:
org.apache.calcite.rex.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 org.apache.calcite.rex.RexNode> nodes) Returns whether any of the given expressions contain what this RexFinder seeks.booleancontains(org.apache.calcite.rex.RexNode node) Returns whether the given expression contains what this RexFinder seeks.booleaninFilter(org.apache.calcite.rel.core.Filter filter) Returns whether aFiltercontains the kind of expression we seek.booleaninJoin(org.apache.calcite.rel.core.Join join) Returns whether aJoincontains kind of expression we seek.booleaninProject(org.apache.calcite.rel.core.Project project) Returns whether aProjectcontains the kind of expression we seek.Methods inherited from class org.apache.calcite.rex.RexVisitorImpl
visitArrayAnd, visitArrayOr, visitCall, visitCorrelVariable, visitDynamicParam, visitFieldAccess, visitInputRef, 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
public boolean inProject(org.apache.calcite.rel.core.Project project) Returns whether aProjectcontains the kind of expression we seek. -
inFilter
public boolean inFilter(org.apache.calcite.rel.core.Filter filter) Returns whether aFiltercontains the kind of expression we seek. -
inJoin
public boolean inJoin(org.apache.calcite.rel.core.Join join) Returns whether aJoincontains kind of expression we seek. -
contains
public boolean contains(org.apache.calcite.rex.RexNode node) Returns whether the given expression contains what this RexFinder seeks. -
anyContain
Returns whether any of the given expressions contain what this RexFinder seeks.
-