Package org.apache.calcite.rel.rules
Class CalcRelSplitter.MaxInputFinder
- java.lang.Object
-
- org.apache.calcite.rex.RexVisitorImpl<java.lang.Void>
-
- org.apache.calcite.rel.rules.CalcRelSplitter.MaxInputFinder
-
- All Implemented Interfaces:
RexVisitor<java.lang.Void>
- Enclosing class:
- CalcRelSplitter
private static class CalcRelSplitter.MaxInputFinder extends RexVisitorImpl<java.lang.Void>
Finds the highest level used by any of the inputs of a given expression.
-
-
Field Summary
Fields Modifier and Type Field Description private int[]
exprLevels
(package private) int
level
-
Fields inherited from class org.apache.calcite.rex.RexVisitorImpl
deep
-
-
Constructor Summary
Constructors Constructor Description MaxInputFinder(int[] exprLevels)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
maxInputFor(RexNode expr)
Returns the highest level of any of the inputs of an expression.java.lang.Void
visitLocalRef(RexLocalRef localRef)
-
Methods inherited from class org.apache.calcite.rex.RexVisitorImpl
visitArrayAnd, visitArrayOr, visitCall, visitCorrelVariable, visitDynamicParam, visitFieldAccess, visitInputRef, visitLiteral, visitOver, visitPatternFieldRef, visitRangeRef, visitSubQuery, visitTableInputRef
-
-
-
-
Method Detail
-
visitLocalRef
public java.lang.Void visitLocalRef(RexLocalRef localRef)
- Specified by:
visitLocalRef
in interfaceRexVisitor<java.lang.Void>
- Overrides:
visitLocalRef
in classRexVisitorImpl<java.lang.Void>
-
maxInputFor
public int maxInputFor(RexNode expr)
Returns the highest level of any of the inputs of an expression.
-
-