org.eigenbase.rex
Class RexDynamicParam
java.lang.Object
org.eigenbase.rex.RexNode
org.eigenbase.rex.RexVariable
org.eigenbase.rex.RexDynamicParam
public class RexDynamicParam
- extends RexVariable
Dynamic parameter reference in a row-expression.
- Version:
- $Id: //open/dev/farrago/src/org/eigenbase/rex/RexDynamicParam.java#13 $
- Author:
- John V. Sichi
Field Summary |
private int |
index
|
index
private final int index
RexDynamicParam
public RexDynamicParam(RelDataType type,
int index)
- Creates a dynamic parameter.
- Parameters:
type
- inferred type of parameterindex
- 0-based index of dynamic parameter in statement
clone
public RexDynamicParam clone()
- Specified by:
clone
in class RexNode
getKind
public RexKind getKind()
- Description copied from class:
RexNode
- Returns the kind of node this is.
- Overrides:
getKind
in class RexNode
- Returns:
- A
RexKind
value, never null
getIndex
public int getIndex()
accept
public <R> R accept(RexVisitor<R> visitor)
- Description copied from class:
RexNode
- Accepts a visitor, dispatching to the right overloaded
visitXxx
method.
Also see RexProgram.apply(RexVisitor, RexNode[], RexNode)
,
which applies a visitor to several expressions simultaneously.
- Specified by:
accept
in class RexNode