org.eigenbase.rex
Class RexProgramBuilder.UsageVisitor

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

private class RexProgramBuilder.UsageVisitor
extends RexVisitorImpl<Void>

Visitor which marks which expressions are used.


Field Summary
(package private)  int unusedCount
           
(package private)  boolean[] usedExprs
           
 
Fields inherited from class org.eigenbase.rex.RexVisitorImpl
deep
 
Constructor Summary
RexProgramBuilder.UsageVisitor()
           
 
Method Summary
 Void visitLocalRef(RexLocalRef localRef)
           
 
Methods inherited from class org.eigenbase.rex.RexVisitorImpl
visitArrayAnd, visitArrayOr, visitCall, visitCorrelVariable, visitDynamicParam, visitFieldAccess, visitInputRef, visitLiteral, visitOver, visitRangeRef
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

usedExprs

final boolean[] usedExprs

unusedCount

int unusedCount
Constructor Detail

RexProgramBuilder.UsageVisitor

public RexProgramBuilder.UsageVisitor()
Method Detail

visitLocalRef

public Void visitLocalRef(RexLocalRef localRef)
Specified by:
visitLocalRef in interface RexVisitor<Void>
Overrides:
visitLocalRef in class RexVisitorImpl<Void>