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| 构造器和说明 |
|---|
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. |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 StateDescriptor<UV>public final boolean equals(Object o)
equals 在类中 StateDescriptor<UV>Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.