Package org.apache.calcite.rex
Class RexPatternFieldRef
- java.lang.Object
-
- org.apache.calcite.rex.RexNode
-
- org.apache.calcite.rex.RexVariable
-
- org.apache.calcite.rex.RexSlot
-
- org.apache.calcite.rex.RexInputRef
-
- org.apache.calcite.rex.RexPatternFieldRef
-
public class RexPatternFieldRef extends RexInputRef
Variable which references a field of an input relational expression
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.calcite.rex.RexSlot
RexSlot.SelfPopulatingList
-
-
Constructor Summary
Constructors Constructor Description RexPatternFieldRef(java.lang.String alpha, int index, RelDataType type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,P>
Raccept(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.java.lang.String
getAlpha()
SqlKind
getKind()
Returns the kind of node this is.static RexPatternFieldRef
of(java.lang.String alpha, int index, RelDataType type)
static RexPatternFieldRef
of(java.lang.String alpha, RexInputRef ref)
-
Methods inherited from class org.apache.calcite.rex.RexInputRef
createName, equals, hashCode, of, of, of2
-
Methods inherited from class org.apache.calcite.rex.RexVariable
getName, getType
-
Methods inherited from class org.apache.calcite.rex.RexNode
isA, isA, isAlwaysFalse, isAlwaysTrue, toString
-
-
-
-
Constructor Detail
-
RexPatternFieldRef
public RexPatternFieldRef(java.lang.String alpha, int index, RelDataType type)
-
-
Method Detail
-
getAlpha
public java.lang.String getAlpha()
-
of
public static RexPatternFieldRef of(java.lang.String alpha, int index, RelDataType type)
-
of
public static RexPatternFieldRef of(java.lang.String alpha, RexInputRef ref)
-
accept
public <R> R accept(RexVisitor<R> visitor)
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.- Overrides:
accept
in classRexInputRef
-
accept
public <R,P> R accept(RexBiVisitor<R,P> visitor, P arg)
Description copied from class:RexNode
Accepts a visitor with a payload, dispatching to the right overloadedRexBiVisitor.visitInputRef(RexInputRef, Object)
visitXxx} method.- Overrides:
accept
in classRexInputRef
-
getKind
public SqlKind getKind()
Description copied from class:RexNode
Returns the kind of node this is.- Overrides:
getKind
in classRexInputRef
- Returns:
- Node kind, never null
-
-