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

public static class RexUtil.SubQueryFinder extends org.apache.calcite.rex.RexVisitorImpl<Void>
Visitor that throws Util.FoundOne if applied to an expression that contains a RexSubQuery.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Predicate<org.apache.calcite.rel.core.Filter>
    Deprecated.
     
    static 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 Type
    Method
    Description
    static boolean
    containsSubQuery(org.apache.calcite.rel.core.Filter filter)
    Returns whether a Filter contains a sub-query.
    static boolean
    containsSubQuery(org.apache.calcite.rel.core.Join join)
    Returns whether a Join contains a sub-query.
    static boolean
    containsSubQuery(org.apache.calcite.rel.core.Project project)
    Returns whether a Project contains a sub-query.
    static @Nullable org.apache.calcite.rex.RexSubQuery
    find(Iterable<org.apache.calcite.rex.RexNode> nodes)
     
    static @Nullable org.apache.calcite.rex.RexSubQuery
    find(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, 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
  • Field Details

    • INSTANCE

      public static final RexUtil.SubQueryFinder INSTANCE
    • PROJECT_PREDICATE

      @Deprecated public static final com.google.common.base.Predicate<org.apache.calcite.rel.core.Project> PROJECT_PREDICATE
      Deprecated.
    • FILTER_PREDICATE

      @Deprecated public static final Predicate<org.apache.calcite.rel.core.Filter> FILTER_PREDICATE
      Deprecated.
    • JOIN_PREDICATE

      @Deprecated public static final com.google.common.base.Predicate<org.apache.calcite.rel.core.Join> JOIN_PREDICATE
      Deprecated.
  • Method Details

    • containsSubQuery

      public static boolean containsSubQuery(org.apache.calcite.rel.core.Project project)
      Returns whether a Project contains a sub-query.
    • containsSubQuery

      public static boolean containsSubQuery(org.apache.calcite.rel.core.Filter filter)
      Returns whether a Filter contains a sub-query.
    • containsSubQuery

      public static boolean containsSubQuery(org.apache.calcite.rel.core.Join join)
      Returns whether a Join contains a sub-query.
    • visitSubQuery

      public Void visitSubQuery(org.apache.calcite.rex.RexSubQuery subQuery)
      Specified by:
      visitSubQuery in interface org.apache.calcite.rex.RexVisitor<Void>
      Overrides:
      visitSubQuery in class org.apache.calcite.rex.RexVisitorImpl<Void>
    • 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)