Class ReducingStateAdaptor<K,N,V>
- 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,V,V,V,V>
-
- org.apache.flink.runtime.state.v2.adaptor.ReducingStateAdaptor<K,N,V>
-
- All Implemented Interfaces:
org.apache.flink.api.common.state.v2.AggregatingState<V,V>,org.apache.flink.api.common.state.v2.AppendingState<V,V,V>,org.apache.flink.api.common.state.v2.MergingState<V,V,V>,org.apache.flink.api.common.state.v2.ReducingState<V>,org.apache.flink.api.common.state.v2.State,InternalAggregatingState<K,N,V,V,V>,InternalAppendingState<K,N,V,V,V,V>,InternalKeyedState<K,N,V>,InternalMergingState<K,N,V,V,V,V>,InternalPartitionedState<N>,InternalReducingState<K,N,V>,InternalStateAccessible<V>
public class ReducingStateAdaptor<K,N,V> extends MergingStateAdaptor<K,N,V,V,V,V> implements InternalReducingState<K,N,V>
An adaptor that transformsInternalReducingStateintoInternalReducingState.
-
-
Constructor Summary
Constructors Constructor Description ReducingStateAdaptor(InternalReducingState<K,N,V> reducingState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.api.common.state.v2.StateFuture<V>asyncGet()org.apache.flink.api.common.state.v2.StateFuture<V>asyncGetInternal()Get internally stored value.org.apache.flink.api.common.state.v2.StateFuture<Void>asyncUpdateInternal(V valueToStore)Update internally stored value.VgetInternal()Get internally stored value.voidupdateInternal(V valueToStore)Update internally stored value.-
Methods inherited from class org.apache.flink.runtime.state.v2.adaptor.MergingStateAdaptor
add, asyncAdd, asyncMergeNamespaces, get, mergeNamespaces
-
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.api.common.state.v2.AppendingState
add, asyncAdd, get
-
Methods inherited from interface org.apache.flink.runtime.state.v2.internal.InternalMergingState
asyncMergeNamespaces, mergeNamespaces
-
Methods inherited from interface org.apache.flink.runtime.state.v2.internal.InternalPartitionedState
setCurrentNamespace
-
-
-
-
Constructor Detail
-
ReducingStateAdaptor
public ReducingStateAdaptor(InternalReducingState<K,N,V> reducingState)
-
-
Method Detail
-
asyncGet
public org.apache.flink.api.common.state.v2.StateFuture<V> asyncGet()
-
asyncGetInternal
public org.apache.flink.api.common.state.v2.StateFuture<V> asyncGetInternal()
Description copied from interface:InternalStateAccessibleGet internally stored value.- Specified by:
asyncGetInternalin interfaceInternalStateAccessible<K>- Returns:
- internally stored value.
-
asyncUpdateInternal
public org.apache.flink.api.common.state.v2.StateFuture<Void> asyncUpdateInternal(V valueToStore)
Description copied from interface:InternalStateAccessibleUpdate internally stored value.- Specified by:
asyncUpdateInternalin interfaceInternalStateAccessible<K>- Parameters:
valueToStore- new value to store.
-
getInternal
public V getInternal()
Description copied from interface:InternalStateAccessibleGet internally stored value.- Specified by:
getInternalin interfaceInternalStateAccessible<K>- Returns:
- internally stored value.
-
updateInternal
public void updateInternal(V valueToStore)
Description copied from interface:InternalStateAccessibleUpdate internally stored value.- Specified by:
updateInternalin interfaceInternalStateAccessible<K>- Parameters:
valueToStore- new value to store.
-
-