Class ImmutableValueState<V>

  • All Implemented Interfaces:
    org.apache.flink.api.common.state.State, org.apache.flink.api.common.state.ValueState<V>

    public final class ImmutableValueState<V>
    extends Object
    implements org.apache.flink.api.common.state.ValueState<V>
    A read-only ValueState 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 ValueStateDescriptor.

    • Method Detail

      • value

        public V value()
        Specified by:
        value in interface org.apache.flink.api.common.state.ValueState<V>
      • update

        public void update​(V newValue)
        Specified by:
        update in interface org.apache.flink.api.common.state.ValueState<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