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)
Create
TypeSerializer for this type. |
TypeSerializer<Map<K,V>> |
createSerializer(SerializerConfig 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, of
public MapTypeInfo(TypeInformation<K> keyTypeInfo, TypeInformation<V> valueTypeInfo)
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<Map<K,V>>
public boolean isTupleType()
TypeInformation
isTupleType
in class TypeInformation<Map<K,V>>
public int getArity()
TypeInformation
getArity
in class TypeInformation<Map<K,V>>
public int getTotalFields()
TypeInformation
The total number of fields must be at least 1.
getTotalFields
in class TypeInformation<Map<K,V>>
public Class<Map<K,V>> getTypeClass()
TypeInformation
getTypeClass
in class TypeInformation<Map<K,V>>
public boolean isKeyType()
TypeInformation
isKeyType
in class TypeInformation<Map<K,V>>
public TypeSerializer<Map<K,V>> createSerializer(SerializerConfig config)
TypeInformation
createSerializer
in class TypeInformation<Map<K,V>>
config
- The config used to parameterize the serializer.public TypeSerializer<Map<K,V>> createSerializer(ExecutionConfig config)
TypeInformation
TypeSerializer
for this type.createSerializer
in class TypeInformation<Map<K,V>>
config
- the configuration of this job executionpublic int hashCode()
hashCode
in class TypeInformation<Map<K,V>>
public boolean canEqual(Object obj)
TypeInformation
canEqual
in class TypeInformation<Map<K,V>>
obj
- Object which wants to take part in the equality relationCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.