org.eigenbase.relopt
Class RelOptUtil.InputFinder

java.lang.Object
  extended by org.eigenbase.rex.RexVisitorImpl<Void>
      extended by org.eigenbase.relopt.RelOptUtil.InputFinder
All Implemented Interfaces:
RexVisitor<Void>
Enclosing class:
RelOptUtil

public static class RelOptUtil.InputFinder
extends RexVisitorImpl<Void>

Visitor which builds a bitmap of the inputs used by an expression.


Field Summary
private  BitSet rexRefSet
           
 
Fields inherited from class org.eigenbase.rex.RexVisitorImpl
deep
 
Constructor Summary
RelOptUtil.InputFinder(BitSet rexRefSet)
           
 
Method Summary
 void apply(RexNode[] exprs, RexNode expr)
          Applies this visitor to an array of expressions and an optional single expression.
 Void visitInputRef(RexInputRef inputRef)
           
 
Methods inherited from class org.eigenbase.rex.RexVisitorImpl
visitArrayAnd, visitArrayOr, visitCall, visitCorrelVariable, visitDynamicParam, visitFieldAccess, visitLiteral, visitLocalRef, visitOver, visitRangeRef
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rexRefSet

private final BitSet rexRefSet
Constructor Detail

RelOptUtil.InputFinder

public RelOptUtil.InputFinder(BitSet rexRefSet)
Method Detail

visitInputRef

public Void visitInputRef(RexInputRef inputRef)
Specified by:
visitInputRef in interface RexVisitor<Void>
Overrides:
visitInputRef in class RexVisitorImpl<Void>

apply

public void apply(RexNode[] exprs,
                  RexNode expr)
Applies this visitor to an array of expressions and an optional single expression.