Package org.apache.calcite.rex
Interface RexBiVisitor<R,P>
- Type Parameters:
R
- Return typeP
- Payload type
- All Known Implementing Classes:
LogicVisitor
,RexBiVisitorImpl
,RexUnaryBiVisitor
public interface RexBiVisitor<R,P>
Visitor pattern for traversing a tree of
RexNode
objects
and passing a payload to each.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvisitCorrelVariable
(RexCorrelVariable correlVariable, P arg) visitDynamicParam
(RexDynamicParam dynamicParam, P arg) default void
Visits a list of expressions.default void
visitEachIndexed
(Iterable<? extends RexNode> exprs) Visits a list of expressions, passing the 0-based index of the expression in the list.visitFieldAccess
(RexFieldAccess fieldAccess, P arg) visitInputRef
(RexInputRef inputRef, P arg) visitLambda
(RexLambda lambda, P arg) Visits a list and returns a list of the results.default void
Visits a list and writes the results to another list.visitLiteral
(RexLiteral literal, P arg) visitLocalRef
(RexLocalRef localRef, P arg) visitPatternFieldRef
(RexPatternFieldRef ref, P arg) visitRangeRef
(RexRangeRef rangeRef, P arg) visitSubQuery
(RexSubQuery subQuery, P arg) visitTableInputRef
(RexTableInputRef ref, P arg)
-
Method Details
-
visitInputRef
-
visitLocalRef
-
visitLiteral
-
visitCall
-
visitOver
-
visitCorrelVariable
-
visitDynamicParam
-
visitRangeRef
-
visitFieldAccess
-
visitSubQuery
-
visitTableInputRef
-
visitPatternFieldRef
-
visitLambda
-
visitList
Visits a list and writes the results to another list. -
visitList
Visits a list and returns a list of the results. The resulting list is immutable and does not contain nulls. -
visitEach
Visits a list of expressions. -
visitEachIndexed
Visits a list of expressions, passing the 0-based index of the expression in the list.Assumes that the payload type
P
isInteger
.
-