Package org.apache.calcite.rex
Class RexFieldAccess
- java.lang.Object
-
- org.apache.calcite.rex.RexNode
-
- org.apache.calcite.rex.RexFieldAccess
-
public class RexFieldAccess extends org.apache.calcite.rex.RexNode
Access to a field of a row-expression.You might expect to use a
RexFieldAccess
to access columns of relational tables, for example, the expressionemp.empno
in the querySELECT emp.empno FROM emp
but there is a specialized expression
RexInputRef
for this purpose. So in practice,RexFieldAccess
is usually used to access fields of correlating variables, for example the expressionemp.deptno
inSELECT ename FROM dept WHERE EXISTS ( SELECT NULL FROM emp WHERE emp.deptno = dept.deptno AND gender = 'F')
FLINK modifications are at lines
- Should be removed after fixing CALCITE-6342 (Calcite 1.36.0): Lines 83-87
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,P>
Raccept(org.apache.calcite.rex.RexBiVisitor<R,P> visitor, P arg)
<R> R
accept(org.apache.calcite.rex.RexVisitor<R> visitor)
boolean
equals(@Nullable Object o)
org.apache.calcite.rel.type.RelDataTypeField
getField()
org.apache.calcite.sql.SqlKind
getKind()
org.apache.calcite.rex.RexNode
getReferenceExpr()
Returns the expression whose field is being accessed.org.apache.calcite.rel.type.RelDataType
getType()
int
hashCode()
-
-
-
Method Detail
-
getField
public org.apache.calcite.rel.type.RelDataTypeField getField()
-
getType
public org.apache.calcite.rel.type.RelDataType getType()
- Specified by:
getType
in classorg.apache.calcite.rex.RexNode
-
getKind
public org.apache.calcite.sql.SqlKind getKind()
- Overrides:
getKind
in classorg.apache.calcite.rex.RexNode
-
accept
public <R> R accept(org.apache.calcite.rex.RexVisitor<R> visitor)
- Specified by:
accept
in classorg.apache.calcite.rex.RexNode
-
accept
public <R,P> R accept(org.apache.calcite.rex.RexBiVisitor<R,P> visitor, P arg)
- Specified by:
accept
in classorg.apache.calcite.rex.RexNode
-
getReferenceExpr
public org.apache.calcite.rex.RexNode getReferenceExpr()
Returns the expression whose field is being accessed.
-
equals
public boolean equals(@Nullable Object o)
- Specified by:
equals
in classorg.apache.calcite.rex.RexNode
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classorg.apache.calcite.rex.RexNode
-
-