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
ConstructorsConstructorDescriptionRelDataTypeFieldImpl(String name, int index, RelDataType type) Creates a RelDataTypeFieldImpl. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetIndex()Gets the ordinal of this field within its containing type.final StringgetKey()getName()Gets the name of this field, which is unique within its containing type.getType()Gets the type of this field.final RelDataTypegetValue()inthashCode()booleanReturns 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:RelDataTypeFieldGets the name of this field, which is unique within its containing type.- Specified by:
getNamein interfaceRelDataTypeField- Returns:
- field name
-
getIndex
public int getIndex()Description copied from interface:RelDataTypeFieldGets the ordinal of this field within its containing type.- Specified by:
getIndexin interfaceRelDataTypeField- Returns:
- 0-based ordinal
-
getType
Description copied from interface:RelDataTypeFieldGets the type of this field.- Specified by:
getTypein interfaceRelDataTypeField- Returns:
- field type
-
getKey
- Specified by:
getKeyin interfaceMap.Entry<String,RelDataType>
-
getValue
- Specified by:
getValuein interfaceMap.Entry<String,RelDataType>
-
setValue
- Specified by:
setValuein interfaceMap.Entry<String,RelDataType>
-
toString
-
isDynamicStar
public boolean isDynamicStar()Description copied from interface:RelDataTypeFieldReturns true if this is a dynamic star field.- Specified by:
isDynamicStarin interfaceRelDataTypeField
-