Class PartitionableListState<S>

java.lang.Object
org.apache.flink.runtime.state.PartitionableListState<S>
Type Parameters:
S - the type of an operator state partition.
All Implemented Interfaces:
org.apache.flink.api.common.state.AppendingState<S,Iterable<S>>, org.apache.flink.api.common.state.ListState<S>, org.apache.flink.api.common.state.MergingState<S,Iterable<S>>, org.apache.flink.api.common.state.State

public final class PartitionableListState<S> extends Object implements org.apache.flink.api.common.state.ListState<S>
Implementation of operator list state.
  • Method Details

    • setStateMetaInfo

      public void setStateMetaInfo(RegisteredOperatorStateBackendMetaInfo<S> stateMetaInfo)
    • getStateMetaInfo

      public RegisteredOperatorStateBackendMetaInfo<S> getStateMetaInfo()
    • deepCopy

      public PartitionableListState<S> deepCopy()
    • clear

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

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

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

      public String toString()
      Overrides:
      toString in class Object
    • write

      public long[] write(org.apache.flink.core.fs.FSDataOutputStream out) throws IOException
      Throws:
      IOException
    • update

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

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

      @VisibleForTesting public ArrayListSerializer<S> getInternalListCopySerializer()