Package org.apache.calcite.rex
Class RexDynamicParam
java.lang.Object
org.apache.calcite.rex.RexNode
org.apache.calcite.rex.RexVariable
org.apache.calcite.rex.RexDynamicParam
Dynamic parameter reference in a row-expression.
-
Field Summary
Fields inherited from class org.apache.calcite.rex.RexVariable
name, type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<R,
P> R accept
(RexBiVisitor<R, P> visitor, P arg) Accepts a visitor with a payload, dispatching to the right overloadedRexBiVisitor.visitInputRef(RexInputRef, Object)
visitXxx} method.<R> R
accept
(RexVisitor<R> visitor) Accepts a visitor, dispatching to the right overloadedvisitXxx
method.boolean
int
getIndex()
getKind()
Returns the kind of node this is.int
hashCode()
Methods inherited from class org.apache.calcite.rex.RexVariable
getName, getType
Methods inherited from class org.apache.calcite.rex.RexNode
isA, isA, isAlwaysFalse, isAlwaysTrue, nodeCount, toString
-
Constructor Details
-
RexDynamicParam
Creates a dynamic parameter.- Parameters:
type
- inferred type of parameterindex
- 0-based index of dynamic parameter in statement
-
-
Method Details
-
getKind
Description copied from class:RexNode
Returns the kind of node this is. -
getIndex
public int getIndex() -
accept
Description copied from class:RexNode
Accepts a visitor, dispatching to the right overloadedvisitXxx
method.Also see
RexUtil.apply(RexVisitor, java.util.List, RexNode)
, which applies a visitor to several expressions simultaneously. -
accept
Description copied from class:RexNode
Accepts a visitor with a payload, dispatching to the right overloadedRexBiVisitor.visitInputRef(RexInputRef, Object)
visitXxx} method. -
equals
Description copied from class:RexNode
Every node must implement
RexNode.equals(java.lang.Object)
based on its content -
hashCode
public int hashCode()Description copied from class:RexNode
Every node must implement
RexNode.hashCode()
consistent withRexNode.equals(java.lang.Object)
-