K
- The type of the keys in the map.V
- The type of the values in the map.@PublicEvolving public class SortedMapTypeInfo<K,V> extends TypeInformation<M>
Constructor and Description |
---|
SortedMapTypeInfo(Class<K> keyClass,
Class<V> valueClass) |
SortedMapTypeInfo(Class<K> keyClass,
Class<V> valueClass,
Comparator<K> comparator) |
SortedMapTypeInfo(TypeInformation<K> keyTypeInfo,
TypeInformation<V> valueTypeInfo,
Comparator<K> comparator) |
Modifier and Type | Method and Description |
---|---|
boolean |
canEqual(Object obj)
Returns true if the given object can be equaled with this object.
|
TypeSerializer<SortedMap<K,V>> |
createSerializer(ExecutionConfig config)
Creates a serializer for the type.
|
boolean |
equals(Object o) |
int |
getArity()
Gets the arity of this type - the number of fields without nesting.
|
TypeInformation<K> |
getKeyTypeInfo()
Returns the type information for the keys in the map.
|
int |
getTotalFields()
Gets the number of logical fields in this type.
|
Class<SortedMap<K,V>> |
getTypeClass()
Gets the class of the type represented by this type information.
|
TypeInformation<V> |
getValueTypeInfo()
Returns the type information for the values in the map.
|
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
public SortedMapTypeInfo(TypeInformation<K> keyTypeInfo, TypeInformation<V> valueTypeInfo, Comparator<K> comparator)
public SortedMapTypeInfo(Class<K> keyClass, Class<V> valueClass, Comparator<K> comparator)
public Class<SortedMap<K,V>> getTypeClass()
TypeInformation
getTypeClass
in class TypeInformation<SortedMap<K,V>>
public TypeSerializer<SortedMap<K,V>> createSerializer(ExecutionConfig config)
TypeInformation
createSerializer
in class TypeInformation<SortedMap<K,V>>
config
- The config used to parameterize the serializer.public boolean canEqual(Object obj)
TypeInformation
canEqual
in class TypeInformation<SortedMap<K,V>>
obj
- Object which wants to take part in the equality relationpublic boolean equals(Object o)
public int hashCode()
public TypeInformation<K> getKeyTypeInfo()
public TypeInformation<V> getValueTypeInfo()
public boolean isBasicType()
TypeInformation
BasicTypeInfo
and are primitives, their boxing types,
Strings, Date, Void, ...isBasicType
in class TypeInformation<M extends Map<K,V>>
public boolean isTupleType()
TypeInformation
isTupleType
in class TypeInformation<M extends Map<K,V>>
public int getArity()
TypeInformation
getArity
in class TypeInformation<M extends Map<K,V>>
public int getTotalFields()
TypeInformation
The total number of fields must be at least 1.
getTotalFields
in class TypeInformation<M extends Map<K,V>>
public boolean isKeyType()
TypeInformation
isKeyType
in class TypeInformation<M extends Map<K,V>>
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.