Class StateAdaptor<K,N,S extends InternalKvState<K,N,?>>

java.lang.Object
org.apache.flink.runtime.state.v2.adaptor.StateAdaptor<K,N,S>
Type Parameters:
K - The type of key the state is associated to
N - The type of the namespace
S - The type of delegated state
All Implemented Interfaces:
org.apache.flink.api.common.state.v2.State, InternalPartitionedState<N>
Direct Known Subclasses:
ListStateAdaptor, MapStateAdaptor, MergingStateAdaptor, ValueStateAdaptor

public class StateAdaptor<K,N,S extends InternalKvState<K,N,?>> extends Object implements InternalPartitionedState<N>, org.apache.flink.api.common.state.v2.State
An base implementation of state adaptor from v1 to v2.
  • Method Details

    • asyncClear

      public org.apache.flink.api.common.state.v2.StateFuture<Void> asyncClear()
      Specified by:
      asyncClear in interface org.apache.flink.api.common.state.v2.State
    • clear

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

      public void setCurrentNamespace(N namespace)
      Description copied from interface: InternalPartitionedState
      Set current namespace and access state under specified namespace afterward.
      Specified by:
      setCurrentNamespace in interface InternalPartitionedState<K>
      Parameters:
      namespace - the specified namespace