Class AbstractMapState<K,N,UK,V>
java.lang.Object
org.apache.flink.runtime.state.v2.AbstractKeyedState<K,N,V>
org.apache.flink.runtime.state.v2.AbstractMapState<K,N,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,InternalKeyedState<K,,N, V> InternalMapState<K,,N, UK, V> InternalPartitionedState<N>
public class AbstractMapState<K,N,UK,V>
extends AbstractKeyedState<K,N,V>
implements InternalMapState<K,N,UK,V>
A default implementation of
MapState which delegates all async requests to StateRequestHandler.-
Field Summary
Fields inherited from class org.apache.flink.runtime.state.v2.AbstractKeyedState
stateRequestHandler -
Constructor Summary
ConstructorsConstructorDescriptionAbstractMapState(StateRequestHandler stateRequestHandler, org.apache.flink.api.common.state.v2.MapStateDescriptor<UK, V> stateDescriptor) -
Method Summary
Modifier and TypeMethodDescriptionorg.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>>> org.apache.flink.api.common.state.v2.StateFuture<V>org.apache.flink.api.common.state.v2.StateFuture<Boolean>org.apache.flink.api.common.state.v2.StateFuture<org.apache.flink.api.common.state.v2.StateIterator<UK>>org.apache.flink.api.common.state.v2.StateFuture<Void>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>>booleanentries()booleanisEmpty()iterator()keys()voidvoidvoidvalues()Methods inherited from class org.apache.flink.runtime.state.v2.AbstractKeyedState
asyncClear, clear, getStateDescriptor, getStateRequestHandler, getValueSerializer, handleRequest, handleRequestSync, setCurrentNamespaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.runtime.state.v2.internal.InternalPartitionedState
setCurrentNamespaceMethods inherited from interface org.apache.flink.api.common.state.v2.State
asyncClear, clear
-
Constructor Details
-
AbstractMapState
public AbstractMapState(StateRequestHandler stateRequestHandler, org.apache.flink.api.common.state.v2.MapStateDescriptor<UK, V> stateDescriptor)
-
-
Method Details
-
asyncGet
-
asyncPut
-
asyncPutAll
-
asyncRemove
-
asyncContains
-
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() -
asyncIsEmpty
-
get
-
put
-
putAll
-
remove
-
contains
-
entries
-
keys
-
values
-
iterator
-
isEmpty
public boolean isEmpty()
-