Class ImmutableListState<V>

  • All Implemented Interfaces:
    org.apache.flink.api.common.state.AppendingState<V,​Iterable<V>>, org.apache.flink.api.common.state.ListState<V>, org.apache.flink.api.common.state.MergingState<V,​Iterable<V>>, org.apache.flink.api.common.state.State

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

    • Method Detail

      • get

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

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

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

        public void update​(List<V> values)
        Specified by:
        update in interface org.apache.flink.api.common.state.ListState<V>
      • addAll

        public void addAll​(List<V> values)
        Specified by:
        addAll in interface org.apache.flink.api.common.state.ListState<V>
      • createState

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