public class EnumValueTypeInfo<E extends scala.Enumeration> extends TypeInformation<scala.Enumeration.Value> implements AtomicType<scala.Enumeration.Value>
Enumeration
values.Constructor and Description |
---|
EnumValueTypeInfo(E enum_,
Class<scala.Enumeration.Value> clazz) |
Modifier and Type | Method and Description |
---|---|
boolean |
canEqual(Object obj)
Returns true if the given object can be equaled with this object.
|
Class<scala.Enumeration.Value> |
clazz() |
TypeComparator<scala.Enumeration.Value> |
createComparator(boolean ascOrder,
ExecutionConfig config)
Creates a comparator for this type.
|
TypeSerializer<scala.Enumeration.Value> |
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.
|
List<TypeInformation<?>> |
getGenericParameters()
Returns the generic parameters of this type.
|
int |
getTotalFields()
Gets the number of logical fields in this type.
|
Class<scala.Enumeration.Value> |
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() |
isSortKeyType, of, of
public Class<scala.Enumeration.Value> clazz()
public boolean isBasicType()
TypeInformation
BasicTypeInfo
and are primitives, their boxing types,
Strings, Date, Void, ...isBasicType
in class TypeInformation<scala.Enumeration.Value>
public boolean isTupleType()
TypeInformation
isTupleType
in class TypeInformation<scala.Enumeration.Value>
public boolean isKeyType()
TypeInformation
isKeyType
in class TypeInformation<scala.Enumeration.Value>
public int getTotalFields()
TypeInformation
getTotalFields
in class TypeInformation<scala.Enumeration.Value>
public int getArity()
TypeInformation
getArity
in class TypeInformation<scala.Enumeration.Value>
public Class<scala.Enumeration.Value> getTypeClass()
TypeInformation
getTypeClass
in class TypeInformation<scala.Enumeration.Value>
public List<TypeInformation<?>> getGenericParameters()
TypeInformation
getGenericParameters
in class TypeInformation<scala.Enumeration.Value>
public TypeSerializer<scala.Enumeration.Value> createSerializer(ExecutionConfig executionConfig)
TypeInformation
createSerializer
in class TypeInformation<scala.Enumeration.Value>
executionConfig
- The config used to parameterize the serializer.public TypeComparator<scala.Enumeration.Value> createComparator(boolean ascOrder, ExecutionConfig config)
AtomicType
createComparator
in interface AtomicType<scala.Enumeration.Value>
ascOrder
- True, if the comparator should define the order to be ascending,
false, if the comparator should define the order to be descending.config
- The config from which the comparator will be parameterized. Parameterization
includes for example registration of class tags for frameworks like Kryo.public String toString()
toString
in class TypeInformation<scala.Enumeration.Value>
public int hashCode()
hashCode
in class TypeInformation<scala.Enumeration.Value>
public boolean equals(Object obj)
equals
in class TypeInformation<scala.Enumeration.Value>
public boolean canEqual(Object obj)
TypeInformation
canEqual
in class TypeInformation<scala.Enumeration.Value>
obj
- Object which wants to take part in the equality relationCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.