Class RexUtil.RexFinder

  • All Implemented Interfaces:
    org.apache.calcite.rex.RexVisitor<Void>
    Enclosing class:
    RexUtil

    public abstract static class RexUtil.RexFinder
    extends org.apache.calcite.rex.RexVisitorImpl<Void>
    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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean anyContain​(Iterable<? extends org.apache.calcite.rex.RexNode> nodes)
      Returns whether any of the given expressions contain what this RexFinder seeks.
      boolean contains​(org.apache.calcite.rex.RexNode node)
      Returns whether the given expression contains what this RexFinder seeks.
      boolean inFilter​(org.apache.calcite.rel.core.Filter filter)
      Returns whether a Filter contains the kind of expression we seek.
      boolean inJoin​(org.apache.calcite.rel.core.Join join)
      Returns whether a Join contains kind of expression we seek.
      boolean inProject​(org.apache.calcite.rel.core.Project project)
      Returns whether a Project contains 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, visitTableInputRef
      • Methods inherited from interface org.apache.calcite.rex.RexVisitor

        visitEach, visitList, visitList
    • Method Detail

      • inProject

        public boolean inProject​(org.apache.calcite.rel.core.Project project)
        Returns whether a Project contains the kind of expression we seek.
      • inFilter

        public boolean inFilter​(org.apache.calcite.rel.core.Filter filter)
        Returns whether a Filter contains the kind of expression we seek.
      • inJoin

        public boolean inJoin​(org.apache.calcite.rel.core.Join join)
        Returns whether a Join contains 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

        public boolean anyContain​(Iterable<? extends org.apache.calcite.rex.RexNode> nodes)
        Returns whether any of the given expressions contain what this RexFinder seeks.