Class 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 Predicate<org.apache.calcite.rel.core.Filter> FILTER_PREDICATE
      Deprecated.
      static RexUtil.SubQueryFinder INSTANCE  
      static com.google.common.base.Predicate<org.apache.calcite.rel.core.Join> JOIN_PREDICATE
      Deprecated.
      static com.google.common.base.Predicate<org.apache.calcite.rel.core.Project> PROJECT_PREDICATE
      Deprecated.
      • Fields inherited from class org.apache.calcite.rex.RexVisitorImpl

        deep
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      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)  
      Void 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 interface org.apache.calcite.rex.RexVisitor

        visitEach, visitList, visitList
    • Field Detail

      • 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 Detail

      • 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)