Package org.apache.calcite.rex
Class RexUtil.SubQueryFinder
java.lang.Object
org.apache.calcite.rex.RexVisitorImpl<Void>
org.apache.calcite.rex.RexUtil.SubQueryFinder
- All Implemented Interfaces:
org.apache.calcite.rex.RexVisitor<Void>
- Enclosing class:
- RexUtil
Visitor that throws
Util.FoundOne if applied to an expression
that contains a RexSubQuery.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Predicate<org.apache.calcite.rel.core.Filter>Deprecated.static final RexUtil.SubQueryFinderstatic final com.google.common.base.Predicate<org.apache.calcite.rel.core.Join>Deprecated.static final com.google.common.base.Predicate<org.apache.calcite.rel.core.Project>Deprecated.Fields inherited from class org.apache.calcite.rex.RexVisitorImpl
deep -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsSubQuery(org.apache.calcite.rel.core.Filter filter) Returns whether aFiltercontains a sub-query.static booleancontainsSubQuery(org.apache.calcite.rel.core.Join join) Returns whether aJoincontains a sub-query.static booleancontainsSubQuery(org.apache.calcite.rel.core.Project project) Returns whether aProjectcontains a sub-query.static @Nullable org.apache.calcite.rex.RexSubQuerystatic @Nullable org.apache.calcite.rex.RexSubQueryfind(org.apache.calcite.rex.RexNode node) visitSubQuery(org.apache.calcite.rex.RexSubQuery subQuery) Methods inherited from class org.apache.calcite.rex.RexVisitorImpl
visitArrayAnd, visitArrayOr, visitCall, visitCorrelVariable, visitDynamicParam, visitFieldAccess, visitInputRef, visitLiteral, visitLocalRef, visitOver, visitPatternFieldRef, visitRangeRef, 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
-
Field Details
-
INSTANCE
-
PROJECT_PREDICATE
@Deprecated public static final com.google.common.base.Predicate<org.apache.calcite.rel.core.Project> PROJECT_PREDICATEDeprecated. -
FILTER_PREDICATE
Deprecated. -
JOIN_PREDICATE
@Deprecated public static final com.google.common.base.Predicate<org.apache.calcite.rel.core.Join> JOIN_PREDICATEDeprecated.
-
-
Method Details
-
containsSubQuery
public static boolean containsSubQuery(org.apache.calcite.rel.core.Project project) Returns whether aProjectcontains a sub-query. -
containsSubQuery
public static boolean containsSubQuery(org.apache.calcite.rel.core.Filter filter) Returns whether aFiltercontains a sub-query. -
containsSubQuery
public static boolean containsSubQuery(org.apache.calcite.rel.core.Join join) Returns whether aJoincontains a sub-query. -
visitSubQuery
-
find
public static @Nullable org.apache.calcite.rex.RexSubQuery find(Iterable<org.apache.calcite.rex.RexNode> nodes) -
find
public static @Nullable org.apache.calcite.rex.RexSubQuery find(org.apache.calcite.rex.RexNode node)
-