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 transforms InternalReducingState into InternalReducingState.
  • Constructor Details

  • Method Details

    • asyncGet

      public org.apache.flink.api.common.state.v2.StateFuture<V> asyncGet()
      Specified by:
      asyncGet in interface org.apache.flink.api.common.state.v2.AppendingState<K,N,V>
    • asyncGetInternal

      public org.apache.flink.api.common.state.v2.StateFuture<V> asyncGetInternal()
      Description copied from interface: InternalStateAccessible
      Get internally stored value.
      Specified by:
      asyncGetInternal in interface InternalStateAccessible<K>
      Returns:
      internally stored value.
    • asyncUpdateInternal

      public org.apache.flink.api.common.state.v2.StateFuture<Void> asyncUpdateInternal(V valueToStore)
      Description copied from interface: InternalStateAccessible
      Update internally stored value.
      Specified by:
      asyncUpdateInternal in interface InternalStateAccessible<K>
      Parameters:
      valueToStore - new value to store.
    • getInternal

      public V getInternal()
      Description copied from interface: InternalStateAccessible
      Get internally stored value.
      Specified by:
      getInternal in interface InternalStateAccessible<K>
      Returns:
      internally stored value.
    • updateInternal

      public void updateInternal(V valueToStore)
      Description copied from interface: InternalStateAccessible
      Update internally stored value.
      Specified by:
      updateInternal in interface InternalStateAccessible<K>
      Parameters:
      valueToStore - new value to store.