org.eigenbase.reltype
Class RelDataTypeFieldImpl
java.lang.Object
org.eigenbase.reltype.RelDataTypeFieldImpl
- All Implemented Interfaces:
- Serializable, RelDataTypeField
public class RelDataTypeFieldImpl
- extends Object
- implements RelDataTypeField, Serializable
Default implementation of RelDataTypeField
.
- Version:
- $Id: //open/dev/farrago/src/org/eigenbase/reltype/RelDataTypeFieldImpl.java#12 $
- Author:
- jhyde
- See Also:
- Serialized Form
type
private final RelDataType type
name
private final String name
index
private final int index
RelDataTypeFieldImpl
public RelDataTypeFieldImpl(String name,
int index,
RelDataType type)
- "Precondition:"
- name != null, type != null
getName
public String getName()
- Description copied from interface:
RelDataTypeField
- Gets the name of this field, which is unique within its containing type.
- Specified by:
getName
in interface RelDataTypeField
- Returns:
- field name
getIndex
public int getIndex()
- Description copied from interface:
RelDataTypeField
- Gets the ordinal of this field within its containing type.
- Specified by:
getIndex
in interface RelDataTypeField
- Returns:
- 0-based ordinal
getType
public RelDataType getType()
- Description copied from interface:
RelDataTypeField
- Gets the type of this field.
- Specified by:
getType
in interface RelDataTypeField
- Returns:
- field type
toString
public String toString()
- Overrides:
toString
in class Object