Package org.apache.calcite.rel.metadata
Class RelColumnOrigin
java.lang.Object
org.apache.calcite.rel.metadata.RelColumnOrigin
RelColumnOrigin is a data structure describing one of the origins of an
output column produced by a relational expression.
-
Constructor Summary
ConstructorDescriptionRelColumnOrigin
(RelOptTable originTable, int iOriginColumn, boolean isDerived) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns the 0-based index of column in origin table; whether this ordinal is flattened or unflattened depends on whether UDT flattening has already been performed on the relational expression which produced this description.Returns table of origin.int
hashCode()
boolean
Consider the queryselect a+b as c, d as e from t
.
-
Constructor Details
-
RelColumnOrigin
-
-
Method Details
-
getOriginTable
Returns table of origin. -
getOriginColumnOrdinal
public int getOriginColumnOrdinal()Returns the 0-based index of column in origin table; whether this ordinal is flattened or unflattened depends on whether UDT flattening has already been performed on the relational expression which produced this description. -
isDerived
public boolean isDerived()Consider the queryselect a+b as c, d as e from t
. The output column c has two origins (a and b), both of them derived. The output column e has one origin (d), which is not derived.- Returns:
- false if value taken directly from column in origin table; true otherwise
-
equals
-
hashCode
public int hashCode()
-