org.eigenbase.rel.metadata
Class RelColumnOrigin
java.lang.Object
org.eigenbase.rel.metadata.RelColumnOrigin
public class RelColumnOrigin
- extends Object
RelColumnOrigin is a data structure describing one of the origins of an
output column produced by a relational expression.
- Version:
- $Id: //open/dev/farrago/src/org/eigenbase/rel/metadata/RelColumnOrigin.java#6 $
- Author:
- John V. Sichi
originTable
private final RelOptTable originTable
iOriginColumn
private final int iOriginColumn
isDerived
private final boolean isDerived
RelColumnOrigin
public RelColumnOrigin(RelOptTable originTable,
int iOriginColumn,
boolean isDerived)
getOriginTable
public RelOptTable getOriginTable()
- Returns:
- table of origin
getOriginColumnOrdinal
public int getOriginColumnOrdinal()
- Returns:
- 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 query
select 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 d as one origin (c), which is not derived.
- Returns:
- false if value taken directly from column in origin table; true
otherwise
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object