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 toN- The type of the namespaceS- 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.api.common.state.v2.StateFuture<Void>asyncClear()voidclear()voidsetCurrentNamespace(N namespace)Set current namespace and access state under specified namespace afterward.
-
-
-
Method Detail
-
asyncClear
public org.apache.flink.api.common.state.v2.StateFuture<Void> asyncClear()
- Specified by:
asyncClearin interfaceorg.apache.flink.api.common.state.v2.State
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.flink.api.common.state.v2.State
-
setCurrentNamespace
public void setCurrentNamespace(N namespace)
Description copied from interface:InternalPartitionedStateSet current namespace and access state under specified namespace afterward.- Specified by:
setCurrentNamespacein interfaceInternalPartitionedState<K>- Parameters:
namespace- the specified namespace
-
-