Package org.apache.calcite.rel.type
Class RelDataTypeFieldImpl
java.lang.Object
org.apache.calcite.rel.type.RelDataTypeFieldImpl
- All Implemented Interfaces:
Serializable
,Map.Entry<String,
,RelDataType> RelDataTypeField
Default implementation of
RelDataTypeField
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.calcite.rel.type.RelDataTypeField
RelDataTypeField.ToFieldIndex, RelDataTypeField.ToFieldName
-
Constructor Summary
ConstructorDescriptionRelDataTypeFieldImpl
(String name, int index, RelDataType type) Creates a RelDataTypeFieldImpl. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getIndex()
Gets the ordinal of this field within its containing type.final String
getKey()
getName()
Gets the name of this field, which is unique within its containing type.getType()
Gets the type of this field.final RelDataType
getValue()
int
hashCode()
boolean
Returns true if this is a dynamic star field.setValue
(RelDataType value) toString()
-
Constructor Details
-
RelDataTypeFieldImpl
Creates a RelDataTypeFieldImpl.
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
getName
Description copied from interface:RelDataTypeField
Gets the name of this field, which is unique within its containing type.- Specified by:
getName
in interfaceRelDataTypeField
- 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 interfaceRelDataTypeField
- Returns:
- 0-based ordinal
-
getType
Description copied from interface:RelDataTypeField
Gets the type of this field.- Specified by:
getType
in interfaceRelDataTypeField
- Returns:
- field type
-
getKey
- Specified by:
getKey
in interfaceMap.Entry<String,
RelDataType>
-
getValue
- Specified by:
getValue
in interfaceMap.Entry<String,
RelDataType>
-
setValue
- Specified by:
setValue
in interfaceMap.Entry<String,
RelDataType>
-
toString
-
isDynamicStar
public boolean isDynamicStar()Description copied from interface:RelDataTypeField
Returns true if this is a dynamic star field.- Specified by:
isDynamicStar
in interfaceRelDataTypeField
-