UK - The type of the user key for this map state.UV - The type of the values that the map state can hold.public class MapStateDescriptor<UK,UV> extends StateDescriptor<UV>
StateDescriptor for MapState. This can be used to create partitioned map state
internally.StateDescriptor.Type| Constructor and Description |
|---|
MapStateDescriptor(String stateId,
org.apache.flink.api.common.typeinfo.TypeInformation<UK> userKeyTypeInfo,
org.apache.flink.api.common.typeinfo.TypeInformation<UV> userValueTypeInfo)
Creates a new
MapStateDescriptor with 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 new
MapStateDescriptor with the given stateId and type. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
StateDescriptor.Type |
getType()
Return the specific
Type of described state. |
org.apache.flink.api.common.typeutils.TypeSerializer<UK> |
getUserKeySerializer() |
enableTimeToLive, getSerializer, getStateId, getTtlConfig, hashCode, toStringpublic MapStateDescriptor(String stateId, org.apache.flink.api.common.typeinfo.TypeInformation<UK> userKeyTypeInfo, org.apache.flink.api.common.typeinfo.TypeInformation<UV> userValueTypeInfo)
MapStateDescriptor with the given stateId and type.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.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)
MapStateDescriptor with the given stateId and type.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 generate TypeSerializer.@Nonnull public org.apache.flink.api.common.typeutils.TypeSerializer<UK> getUserKeySerializer()
public StateDescriptor.Type getType()
StateDescriptorType of described state.getType in class StateDescriptor<UV>public final boolean equals(Object o)
equals in class StateDescriptor<UV>Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.