Package org.apache.calcite.rel.type
Interface RelDataTypeField
-
- All Superinterfaces:
java.util.Map.Entry<java.lang.String,RelDataType>
- All Known Implementing Classes:
RelDataTypeFieldImpl
public interface RelDataTypeField extends java.util.Map.Entry<java.lang.String,RelDataType>
RelDataTypeField represents the definition of a field in a structuredRelDataType
.Extends the
Map.Entry
interface to allow convenient inter-operation with Java collections classes. In any implementation of this interface,Map.Entry.getKey()
must be equivalent togetName()
andMap.Entry.getValue()
must be equivalent togetType()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
RelDataTypeField.ToFieldIndex
Deprecated.UseRelDataTypeField::getIndex
static class
RelDataTypeField.ToFieldName
Deprecated.UseRelDataTypeField::getName
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getIndex()
Gets the ordinal of this field within its containing type.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.boolean
isDynamicStar()
Returns true if this is a dynamic star field.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Gets the name of this field, which is unique within its containing type.- Returns:
- field name
-
getIndex
int getIndex()
Gets the ordinal of this field within its containing type.- Returns:
- 0-based ordinal
-
getType
RelDataType getType()
Gets the type of this field.- Returns:
- field type
-
isDynamicStar
boolean isDynamicStar()
Returns true if this is a dynamic star field.
-
-