Class InternalReducingState<K,​V>

  • Type Parameters:
    K - The type of key the state is associated to.
    V - The type of values kept internally in state.
    All Implemented Interfaces:
    org.apache.flink.api.common.state.v2.AppendingState<V,​V>, org.apache.flink.api.common.state.v2.MergingState<V,​V>, org.apache.flink.api.common.state.v2.ReducingState<V>, org.apache.flink.api.common.state.v2.State

    public class InternalReducingState<K,​V>
    extends InternalKeyedState<K,​V>
    implements org.apache.flink.api.common.state.v2.ReducingState<V>
    A default implementation of ReducingState which delegates all async requests to StateRequestHandler.
    • Field Detail

      • reduceFunction

        protected final org.apache.flink.api.common.functions.ReduceFunction<V> reduceFunction
    • Method Detail

      • 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,​V>
      • asyncAdd

        public org.apache.flink.api.common.state.v2.StateFuture<Void> asyncAdd​(V value)
        Specified by:
        asyncAdd in interface org.apache.flink.api.common.state.v2.AppendingState<K,​V>