Class InternalMapState<K,UK,V>
- java.lang.Object
-
- org.apache.flink.runtime.state.v2.InternalKeyedState<K,V>
-
- org.apache.flink.runtime.state.v2.InternalMapState<K,UK,V>
-
- Type Parameters:
K- The type of partitioned key the state is associated to.UK- The type of user key of this state.V- The type of values kept internally in state.
- All Implemented Interfaces:
org.apache.flink.api.common.state.v2.MapState<UK,V>,org.apache.flink.api.common.state.v2.State
public class InternalMapState<K,UK,V> extends InternalKeyedState<K,V> implements org.apache.flink.api.common.state.v2.MapState<UK,V>
A default implementation ofMapStatewhich delegates all async requests toStateRequestHandler.
-
-
Constructor Summary
Constructors Constructor Description InternalMapState(StateRequestHandler stateRequestHandler, MapStateDescriptor<UK,V> stateDescriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.api.common.state.v2.StateFuture<Boolean>asyncContains(UK key)org.apache.flink.api.common.state.v2.StateFuture<org.apache.flink.api.common.state.v2.StateIterator<Map.Entry<UK,V>>>asyncEntries()org.apache.flink.api.common.state.v2.StateFuture<V>asyncGet(UK key)org.apache.flink.api.common.state.v2.StateFuture<Boolean>asyncIsEmpty()org.apache.flink.api.common.state.v2.StateFuture<org.apache.flink.api.common.state.v2.StateIterator<UK>>asyncKeys()org.apache.flink.api.common.state.v2.StateFuture<Void>asyncPut(UK key, V value)org.apache.flink.api.common.state.v2.StateFuture<Void>asyncPutAll(Map<UK,V> map)org.apache.flink.api.common.state.v2.StateFuture<Void>asyncRemove(UK key)org.apache.flink.api.common.state.v2.StateFuture<org.apache.flink.api.common.state.v2.StateIterator<V>>asyncValues()-
Methods inherited from class org.apache.flink.runtime.state.v2.InternalKeyedState
asyncClear, getStateDescriptor, getValueSerializer, handleRequest
-
-
-
-
Constructor Detail
-
InternalMapState
public InternalMapState(StateRequestHandler stateRequestHandler, MapStateDescriptor<UK,V> stateDescriptor)
-
-
Method Detail
-
asyncPutAll
public org.apache.flink.api.common.state.v2.StateFuture<Void> asyncPutAll(Map<UK,V> map)
-
asyncContains
public org.apache.flink.api.common.state.v2.StateFuture<Boolean> asyncContains(UK key)
-
asyncEntries
public org.apache.flink.api.common.state.v2.StateFuture<org.apache.flink.api.common.state.v2.StateIterator<Map.Entry<UK,V>>> asyncEntries()
-
asyncKeys
public org.apache.flink.api.common.state.v2.StateFuture<org.apache.flink.api.common.state.v2.StateIterator<UK>> asyncKeys()
-
asyncValues
public org.apache.flink.api.common.state.v2.StateFuture<org.apache.flink.api.common.state.v2.StateIterator<V>> asyncValues()
-
-