|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.rex.RexShuttle
public class RexShuttle
Passes over a row-expression, calling a handler method for each node, appropriate to the type of the node.
Like RexVisitor
, this is an instance of the Visitor Pattern
. Use
RexShuttle
if you would like your methods to return a value.
Constructor Summary | |
---|---|
RexShuttle()
|
Method Summary | ||
---|---|---|
|
apply(List<T> exprList)
Applies this shuttle to each expression in a list. |
|
RexNode |
apply(RexNode expr)
Applies this shuttle to an expression, or returns null if the expression is null. |
|
protected RexNode[] |
visitArray(RexNode[] exprs,
boolean[] update)
Visits each of an array of expressions and returns an array of the results. |
|
RexNode |
visitCall(RexCall call)
|
|
RexNode |
visitCorrelVariable(RexCorrelVariable variable)
|
|
RexNode |
visitDynamicParam(RexDynamicParam dynamicParam)
|
|
RexNode |
visitFieldAccess(RexFieldAccess fieldAccess)
|
|
RexNode |
visitInputRef(RexInputRef inputRef)
|
|
RexNode |
visitLiteral(RexLiteral literal)
|
|
RexNode |
visitLocalRef(RexLocalRef localRef)
|
|
RexNode |
visitOver(RexOver over)
|
|
RexNode |
visitRangeRef(RexRangeRef rangeRef)
|
|
RexWindow |
visitWindow(RexWindow window)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RexShuttle()
Method Detail |
---|
public RexNode visitOver(RexOver over)
visitOver
in interface RexVisitor<RexNode>
public RexWindow visitWindow(RexWindow window)
public RexNode visitCall(RexCall call)
visitCall
in interface RexVisitor<RexNode>
protected RexNode[] visitArray(RexNode[] exprs, boolean[] update)
exprs
- Array of expressionsupdate
- If not null, sets this to true if any of the expressions
was modified
public RexNode visitCorrelVariable(RexCorrelVariable variable)
visitCorrelVariable
in interface RexVisitor<RexNode>
public RexNode visitFieldAccess(RexFieldAccess fieldAccess)
visitFieldAccess
in interface RexVisitor<RexNode>
public RexNode visitInputRef(RexInputRef inputRef)
visitInputRef
in interface RexVisitor<RexNode>
public RexNode visitLocalRef(RexLocalRef localRef)
visitLocalRef
in interface RexVisitor<RexNode>
public RexNode visitLiteral(RexLiteral literal)
visitLiteral
in interface RexVisitor<RexNode>
public RexNode visitDynamicParam(RexDynamicParam dynamicParam)
visitDynamicParam
in interface RexVisitor<RexNode>
public RexNode visitRangeRef(RexRangeRef rangeRef)
visitRangeRef
in interface RexVisitor<RexNode>
public final <T extends RexNode> boolean apply(List<T> exprList)
public final RexNode apply(RexNode expr)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |