Class ListStateAdaptor<K,N,V>
- java.lang.Object
-
- org.apache.flink.runtime.state.v2.adaptor.StateAdaptor<K,N,InternalListState<K,N,V>>
-
- org.apache.flink.runtime.state.v2.adaptor.ListStateAdaptor<K,N,V>
-
- All Implemented Interfaces:
org.apache.flink.api.common.state.v2.AppendingState<V,org.apache.flink.api.common.state.v2.StateIterator<V>,Iterable<V>>,org.apache.flink.api.common.state.v2.ListState<V>,org.apache.flink.api.common.state.v2.MergingState<V,org.apache.flink.api.common.state.v2.StateIterator<V>,Iterable<V>>,org.apache.flink.api.common.state.v2.State,InternalAppendingState<K,N,V,V,org.apache.flink.api.common.state.v2.StateIterator<V>,Iterable<V>>,InternalKeyedState<K,N,V>,InternalListState<K,N,V>,InternalMergingState<K,N,V,V,org.apache.flink.api.common.state.v2.StateIterator<V>,Iterable<V>>,InternalPartitionedState<N>
public class ListStateAdaptor<K,N,V> extends StateAdaptor<K,N,InternalListState<K,N,V>> implements InternalListState<K,N,V>
An adaptor that transformsInternalListStateintoInternalListState.
-
-
Constructor Summary
Constructors Constructor Description ListStateAdaptor(InternalListState<K,N,V> listState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(V value)voidaddAll(List<V> values)org.apache.flink.api.common.state.v2.StateFuture<Void>asyncAdd(V value)org.apache.flink.api.common.state.v2.StateFuture<Void>asyncAddAll(List<V> values)org.apache.flink.api.common.state.v2.StateFuture<org.apache.flink.api.common.state.v2.StateIterator<V>>asyncGet()org.apache.flink.api.common.state.v2.StateFuture<Void>asyncMergeNamespaces(N target, Collection<N> sources)Merges the state of the current key for the given source namespaces into the state of the target namespace.org.apache.flink.api.common.state.v2.StateFuture<Void>asyncUpdate(List<V> values)Iterable<V>get()voidmergeNamespaces(N target, Collection<N> sources)Merges the state of the current key for the given source namespaces into the state of the target namespace.voidupdate(List<V> values)-
Methods inherited from class org.apache.flink.runtime.state.v2.adaptor.StateAdaptor
asyncClear, clear, setCurrentNamespace
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.runtime.state.v2.internal.InternalPartitionedState
setCurrentNamespace
-
-
-
-
Constructor Detail
-
ListStateAdaptor
public ListStateAdaptor(InternalListState<K,N,V> listState)
-
-
Method Detail
-
asyncUpdate
public org.apache.flink.api.common.state.v2.StateFuture<Void> asyncUpdate(List<V> values)
- Specified by:
asyncUpdatein interfaceorg.apache.flink.api.common.state.v2.ListState<K>
-
update
public void update(List<V> values)
- Specified by:
updatein interfaceorg.apache.flink.api.common.state.v2.ListState<K>
-
asyncAddAll
public org.apache.flink.api.common.state.v2.StateFuture<Void> asyncAddAll(List<V> values)
- Specified by:
asyncAddAllin interfaceorg.apache.flink.api.common.state.v2.ListState<K>
-
addAll
public void addAll(List<V> values)
- Specified by:
addAllin interfaceorg.apache.flink.api.common.state.v2.ListState<K>
-
asyncGet
public org.apache.flink.api.common.state.v2.StateFuture<org.apache.flink.api.common.state.v2.StateIterator<V>> asyncGet()
-
add
public void add(V value)
-
asyncMergeNamespaces
public org.apache.flink.api.common.state.v2.StateFuture<Void> asyncMergeNamespaces(N target, Collection<N> sources)
Description copied from interface:InternalMergingStateMerges the state of the current key for the given source namespaces into the state of the target namespace.- Specified by:
asyncMergeNamespacesin interfaceInternalMergingState<K,N,V,V,org.apache.flink.api.common.state.v2.StateIterator<V>,Iterable<V>>- Parameters:
target- The target namespace where the merged state should be stored.sources- The source namespaces whose state should be merged.
-
mergeNamespaces
public void mergeNamespaces(N target, Collection<N> sources)
Description copied from interface:InternalMergingStateMerges the state of the current key for the given source namespaces into the state of the target namespace.- Specified by:
mergeNamespacesin interfaceInternalMergingState<K,N,V,V,org.apache.flink.api.common.state.v2.StateIterator<V>,Iterable<V>>- Parameters:
target- The target namespace where the merged state should be stored.sources- The source namespaces whose state should be merged.
-
-