net.sf.farrago.fennel.rel
Class CalcRelSplitter.MaxInputFinder
java.lang.Object
org.eigenbase.rex.RexVisitorImpl<Void>
net.sf.farrago.fennel.rel.CalcRelSplitter.MaxInputFinder
- All Implemented Interfaces:
- RexVisitor<Void>
- Enclosing class:
- CalcRelSplitter
private static class CalcRelSplitter.MaxInputFinder
- extends RexVisitorImpl<Void>
Finds the highest level used by any of the inputs of a given expression.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
level
int level
exprLevels
private final int[] exprLevels
CalcRelSplitter.MaxInputFinder
CalcRelSplitter.MaxInputFinder(int[] exprLevels)
visitLocalRef
public Void visitLocalRef(RexLocalRef localRef)
- Specified by:
visitLocalRef
in interface RexVisitor<Void>
- Overrides:
visitLocalRef
in class RexVisitorImpl<Void>
maxInputFor
public int maxInputFor(RexNode expr)
- Returns the highest level of any of the inputs of an expression.