Class MapStateDescriptor<UK,UV>
- java.lang.Object
-
- org.apache.flink.runtime.state.v2.StateDescriptor<UV>
-
- org.apache.flink.runtime.state.v2.MapStateDescriptor<UK,UV>
-
- Type Parameters:
UK- The type of the user key for this map state.UV- The type of the values that the map state can hold.
- All Implemented Interfaces:
Serializable
public class MapStateDescriptor<UK,UV> extends StateDescriptor<UV>
StateDescriptorforMapState. This can be used to create partitioned map state internally.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.runtime.state.v2.StateDescriptor
StateDescriptor.Type
-
-
Constructor Summary
Constructors Constructor Description MapStateDescriptor(String stateId, org.apache.flink.api.common.typeinfo.TypeInformation<UK> userKeyTypeInfo, org.apache.flink.api.common.typeinfo.TypeInformation<UV> userValueTypeInfo)Creates a newMapStateDescriptorwith the given stateId and type.MapStateDescriptor(String stateId, org.apache.flink.api.common.typeinfo.TypeInformation<UK> userKeyTypeInfo, org.apache.flink.api.common.typeinfo.TypeInformation<UV> userValueTypeInfo, org.apache.flink.api.common.serialization.SerializerConfig serializerConfig)Creates a newMapStateDescriptorwith the given stateId and type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StateDescriptor.TypegetType()Return the specificTypeof described state.org.apache.flink.api.common.typeutils.TypeSerializer<UK>getUserKeySerializer()-
Methods inherited from class org.apache.flink.runtime.state.v2.StateDescriptor
enableTimeToLive, getSerializer, getStateId, getTtlConfig, hashCode, toString
-
-
-
-
Constructor Detail
-
MapStateDescriptor
public MapStateDescriptor(String stateId, org.apache.flink.api.common.typeinfo.TypeInformation<UK> userKeyTypeInfo, org.apache.flink.api.common.typeinfo.TypeInformation<UV> userValueTypeInfo)
Creates a newMapStateDescriptorwith the given stateId and type.- Parameters:
stateId- The (unique) stateId for the state.userKeyTypeInfo- The type of the user keys in the state.userValueTypeInfo- The type of the values in the state.
-
MapStateDescriptor
public MapStateDescriptor(String stateId, org.apache.flink.api.common.typeinfo.TypeInformation<UK> userKeyTypeInfo, org.apache.flink.api.common.typeinfo.TypeInformation<UV> userValueTypeInfo, org.apache.flink.api.common.serialization.SerializerConfig serializerConfig)
Creates a newMapStateDescriptorwith the given stateId and type.- Parameters:
stateId- The (unique) stateId for the state.userKeyTypeInfo- The type of the user keys in the state.userValueTypeInfo- The type of the values in the state.serializerConfig- The serializer related config used to generateTypeSerializer.
-
-
Method Detail
-
getUserKeySerializer
@Nonnull public org.apache.flink.api.common.typeutils.TypeSerializer<UK> getUserKeySerializer()
-
getType
public StateDescriptor.Type getType()
Description copied from class:StateDescriptorReturn the specificTypeof described state.- Specified by:
getTypein classStateDescriptor<UV>
-
equals
public final boolean equals(Object o)
- Overrides:
equalsin classStateDescriptor<UV>
-
-