T - The type represented by this type information.@Public public class EnumTypeInfo<T extends Enum<T>> extends TypeInformation<T> implements AtomicType<T>
TypeInformation for java enumeration types.| Constructor and Description |
|---|
EnumTypeInfo(Class<T> typeClass) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEqual(Object obj)
Returns true if the given object can be equaled with this object.
|
TypeComparator<T> |
createComparator(boolean sortOrderAscending,
ExecutionConfig executionConfig)
Creates a comparator for this type.
|
TypeSerializer<T> |
createSerializer(ExecutionConfig executionConfig)
Creates a serializer for the type.
|
boolean |
equals(Object obj) |
int |
getArity()
Gets the arity of this type - the number of fields without nesting.
|
int |
getTotalFields()
Gets the number of logical fields in this type.
|
Class<T> |
getTypeClass()
Gets the class of the type represented by this type information.
|
int |
hashCode() |
boolean |
isBasicType()
Checks if this type information represents a basic type.
|
boolean |
isKeyType()
Checks whether this type can be used as a key.
|
boolean |
isTupleType()
Checks if this type information represents a Tuple type.
|
String |
toString() |
getGenericParameters, isSortKeyType, of, of@PublicEvolving public TypeComparator<T> createComparator(boolean sortOrderAscending, ExecutionConfig executionConfig)
AtomicTypecreateComparator in interface AtomicType<T extends Enum<T>>sortOrderAscending - True, if the comparator should define the order to be ascending,
false, if the comparator should define the order to be descending.executionConfig - The config from which the comparator will be parametrized. Parametrization
includes for example registration of class tags for frameworks like Kryo.@PublicEvolving public boolean isBasicType()
TypeInformationBasicTypeInfo and are primitives, their boxing types,
Strings, Date, Void, ...isBasicType in class TypeInformation<T extends Enum<T>>@PublicEvolving public boolean isTupleType()
TypeInformationisTupleType in class TypeInformation<T extends Enum<T>>@PublicEvolving public int getArity()
TypeInformationgetArity in class TypeInformation<T extends Enum<T>>@PublicEvolving public int getTotalFields()
TypeInformationThe total number of fields must be at least 1.
getTotalFields in class TypeInformation<T extends Enum<T>>@PublicEvolving public Class<T> getTypeClass()
TypeInformationgetTypeClass in class TypeInformation<T extends Enum<T>>@PublicEvolving public boolean isKeyType()
TypeInformationisKeyType in class TypeInformation<T extends Enum<T>>@PublicEvolving public TypeSerializer<T> createSerializer(ExecutionConfig executionConfig)
TypeInformationcreateSerializer in class TypeInformation<T extends Enum<T>>executionConfig - The config used to parameterize the serializer.public String toString()
toString in class TypeInformation<T extends Enum<T>>public int hashCode()
hashCode in class TypeInformation<T extends Enum<T>>public boolean canEqual(Object obj)
TypeInformationcanEqual in class TypeInformation<T extends Enum<T>>obj - Object which wants to take part in the equality relationCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.