Package org.apache.calcite.rel.type
Class RelDataTypeFieldImpl
- java.lang.Object
-
- org.apache.calcite.rel.type.RelDataTypeFieldImpl
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.Map.Entry<java.lang.String,RelDataType>
,RelDataTypeField
public class RelDataTypeFieldImpl extends java.lang.Object implements RelDataTypeField, java.io.Serializable
Default implementation ofRelDataTypeField
.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.calcite.rel.type.RelDataTypeField
RelDataTypeField.ToFieldIndex, RelDataTypeField.ToFieldName
-
-
Field Summary
Fields Modifier and Type Field Description private int
index
private java.lang.String
name
private RelDataType
type
-
Constructor Summary
Constructors Constructor Description RelDataTypeFieldImpl(java.lang.String name, int index, RelDataType type)
Creates a RelDataTypeFieldImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
getIndex()
Gets the ordinal of this field within its containing type.java.lang.String
getKey()
java.lang.String
getName()
Gets the name of this field, which is unique within its containing type.RelDataType
getType()
Gets the type of this field.RelDataType
getValue()
int
hashCode()
boolean
isDynamicStar()
Returns true if this is a dynamic star field.RelDataType
setValue(RelDataType value)
java.lang.String
toString()
-
-
-
Field Detail
-
type
private final RelDataType type
-
name
private final java.lang.String name
-
index
private final int index
-
-
Constructor Detail
-
RelDataTypeFieldImpl
public RelDataTypeFieldImpl(java.lang.String name, int index, RelDataType type)
Creates a RelDataTypeFieldImpl.
-
-
Method Detail
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Map.Entry<java.lang.String,RelDataType>
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacejava.util.Map.Entry<java.lang.String,RelDataType>
- Overrides:
equals
in classjava.lang.Object
-
getName
public java.lang.String 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
public RelDataType getType()
Description copied from interface:RelDataTypeField
Gets the type of this field.- Specified by:
getType
in interfaceRelDataTypeField
- Returns:
- field type
-
getKey
public final java.lang.String getKey()
- Specified by:
getKey
in interfacejava.util.Map.Entry<java.lang.String,RelDataType>
-
getValue
public final RelDataType getValue()
- Specified by:
getValue
in interfacejava.util.Map.Entry<java.lang.String,RelDataType>
-
setValue
public RelDataType setValue(RelDataType value)
- Specified by:
setValue
in interfacejava.util.Map.Entry<java.lang.String,RelDataType>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
isDynamicStar
public boolean isDynamicStar()
Description copied from interface:RelDataTypeField
Returns true if this is a dynamic star field.- Specified by:
isDynamicStar
in interfaceRelDataTypeField
-
-