Class MergingStateAdaptor<K,N,IN,ACC,OUT,SYNCOUT>
- java.lang.Object
-
- org.apache.flink.runtime.state.v2.adaptor.StateAdaptor<K,N,InternalMergingState<K,N,IN,ACC,SYNCOUT>>
-
- org.apache.flink.runtime.state.v2.adaptor.MergingStateAdaptor<K,N,IN,ACC,OUT,SYNCOUT>
-
- All Implemented Interfaces:
org.apache.flink.api.common.state.v2.AppendingState<IN,OUT,SYNCOUT>,org.apache.flink.api.common.state.v2.MergingState<IN,OUT,SYNCOUT>,org.apache.flink.api.common.state.v2.State,InternalAppendingState<K,N,IN,ACC,OUT,SYNCOUT>,InternalKeyedState<K,N,ACC>,InternalMergingState<K,N,IN,ACC,OUT,SYNCOUT>,InternalPartitionedState<N>
- Direct Known Subclasses:
AggregatingStateAdaptor,ReducingStateAdaptor
public abstract class MergingStateAdaptor<K,N,IN,ACC,OUT,SYNCOUT> extends StateAdaptor<K,N,InternalMergingState<K,N,IN,ACC,SYNCOUT>> implements InternalMergingState<K,N,IN,ACC,OUT,SYNCOUT>
An adaptor that transformsInternalMergingStateintoInternalMergingState.
-
-
Constructor Summary
Constructors Constructor Description MergingStateAdaptor(InternalMergingState<K,N,IN,ACC,SYNCOUT> mergingState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(IN value)org.apache.flink.api.common.state.v2.StateFuture<Void>asyncAdd(IN value)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.SYNCOUTget()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.-
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
-
-
-
-
Method Detail
-
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,IN,ACC,OUT,SYNCOUT>- 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,IN,ACC,OUT,SYNCOUT>- Parameters:
target- The target namespace where the merged state should be stored.sources- The source namespaces whose state should be merged.
-
get
public SYNCOUT get()
-
-