Class CopyOnWriteStateTable<K,N,S>
java.lang.Object
org.apache.flink.runtime.state.heap.StateTable<K,N,S>
org.apache.flink.runtime.state.heap.CopyOnWriteStateTable<K,N,S>
- Type Parameters:
K- type of key.N- type of namespace.S- type of state.
- All Implemented Interfaces:
Iterable<StateEntry<K,,N, S>> StateSnapshotRestore
This implementation of
StateTable uses CopyOnWriteStateMap. This implementation
supports asynchronous snapshots.-
Field Summary
Fields inherited from class org.apache.flink.runtime.state.heap.StateTable
keyContext, keyGroupedStateMaps, keyGroupRange, keySerializer, metaInfo -
Method Summary
Modifier and TypeMethodDescriptionprotected CopyOnWriteStateMap<K,N, S> voidsetMetaInfo(RegisteredKeyValueStateBackendMetaInfo<N, S> metaInfo) Creates a snapshot of thisCopyOnWriteStateTable, to be written in checkpointing.Methods inherited from class org.apache.flink.runtime.state.heap.StateTable
containsKey, get, get, getKeyGroupOffset, getKeys, getKeysAndNamespaces, getKeySerializer, getMapForKeyGroup, getMetaInfo, getNamespaceSerializer, getState, getStateIncrementalVisitor, getStateSerializer, isEmpty, iterator, keyGroupReader, put, put, remove, removeAndGetOld, size, sizeOfNamespace, transformMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
createStateMap
- Specified by:
createStateMapin classStateTable<K,N, S>
-
setMetaInfo
- Overrides:
setMetaInfoin classStateTable<K,N, S>
-
stateSnapshot
Creates a snapshot of thisCopyOnWriteStateTable, to be written in checkpointing.- Specified by:
stateSnapshotin interfaceStateSnapshotRestore- Specified by:
stateSnapshotin classStateTable<K,N, S> - Returns:
- a snapshot from this
CopyOnWriteStateTable, for checkpointing.
-