Class RexUtil.RexFinder

java.lang.Object
org.apache.calcite.rex.RexVisitorImpl<Void>
org.apache.calcite.rex.RexUtil.RexFinder
All Implemented Interfaces:
RexVisitor<Void>
Enclosing class:
RexUtil

public abstract static class RexUtil.RexFinder extends RexVisitorImpl<Void>
Visitor that tells whether a node matching a particular description exists in a tree.
  • Method Details

    • inProject

      public boolean inProject(Project project)
      Returns whether a Project contains the kind of expression we seek.
    • notInProject

      public boolean notInProject(Project project)
      Returns not inProject(Project).
    • inFilter

      public boolean inFilter(Filter filter)
      Returns whether a Filter contains the kind of expression we seek.
    • notInFilter

      public boolean notInFilter(Filter filter)
      Returns not inFilter(Filter).
    • inCalc

      public boolean inCalc(Calc calc)
      Returns whether a Calc contains the kind of expression we seek.
    • notInCalc

      public boolean notInCalc(Calc calc)
      Returns not inCalc(Calc).
    • inProgram

      public boolean inProgram(RexProgram program)
      Returns whether a RexProgram contains the kind of expression we seek.
    • inJoin

      public boolean inJoin(Join join)
      Returns whether a Join contains the kind of expression we seek.
    • notInJoin

      public boolean notInJoin(Join join)
      Returns not inJoin(Join).
    • contains

      public boolean contains(RexNode node)
      Returns whether the given expression contains what this RexFinder seeks.
    • anyContain

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