Package org.apache.calcite.rex
Class RexCorrelVariable
- java.lang.Object
-
- org.apache.calcite.rex.RexNode
-
- org.apache.calcite.rex.RexVariable
-
- org.apache.calcite.rex.RexCorrelVariable
-
public class RexCorrelVariable extends RexVariable
Reference to the current row of a correlating relational expression.Correlating variables are introduced when performing nested loop joins. Each row is received from one side of the join, a correlating variable is assigned a value, and the other side of the join is restarted.
-
-
Field Summary
Fields Modifier and Type Field Description CorrelationId
id
-
Fields inherited from class org.apache.calcite.rex.RexVariable
name, type
-
-
Constructor Summary
Constructors Constructor Description RexCorrelVariable(CorrelationId id, RelDataType type)
-
Method Summary
All 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.boolean
equals(java.lang.Object obj)
SqlKind
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, toString
-
-
-
-
Field Detail
-
id
public final CorrelationId id
-
-
Constructor Detail
-
RexCorrelVariable
RexCorrelVariable(CorrelationId id, RelDataType type)
-
-
Method Detail
-
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.
-
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.
-
getKind
public SqlKind getKind()
Description copied from class:RexNode
Returns the kind of node this is.
-
equals
public boolean equals(java.lang.Object obj)
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)
-
-