Class ImmutableReducingState<V>

java.lang.Object
org.apache.flink.queryablestate.client.state.ImmutableReducingState<V>
All Implemented Interfaces:
org.apache.flink.api.common.state.AppendingState<V,V>, org.apache.flink.api.common.state.MergingState<V,V>, org.apache.flink.api.common.state.ReducingState<V>, org.apache.flink.api.common.state.State

public final class ImmutableReducingState<V> extends Object implements org.apache.flink.api.common.state.ReducingState<V>
A read-only ReducingState that does not allow for modifications.

This is the result returned when querying Flink's keyed state using the Queryable State Client and providing an ReducingStateDescriptor.

  • Field Details

  • Method Details

    • get

      public V get()
      Specified by:
      get in interface org.apache.flink.api.common.state.AppendingState<V,V>
    • add

      public void add(V newValue)
      Specified by:
      add in interface org.apache.flink.api.common.state.AppendingState<V,V>
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.flink.api.common.state.State
    • createState

      public static <V, S extends org.apache.flink.api.common.state.State> S createState(org.apache.flink.api.common.state.StateDescriptor<S,V> stateDescriptor, byte[] serializedState) throws IOException
      Throws:
      IOException