Class ReducingStateAdaptor<K,​N,​V>

    • Method Detail

      • asyncGet

        public StateFuture<V> asyncGet()
        Description copied from interface: AppendingState
        Returns the current value for the state asynchronously. When the state is not partitioned the returned value is the same for all inputs in a given operator instance. If state partitioning is applied, the value returned depends on the current operator input, as the operator maintains an independent state for each partition.

        NOTE TO IMPLEMENTERS: if the state is empty, then this method should return null wrapped by a StateFuture.

        Specified by:
        asyncGet in interface AppendingState<K,​N,​V>
        Returns:
        The operator state value corresponding to the current input or null wrapped by a StateFuture if the state is empty.