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