K
- type of keyN
- type of namespaceS
- type of statepublic class CopyOnWriteSkipListStateMapSnapshot<K,N,S> extends StateMapSnapshot<K,N,S,CopyOnWriteSkipListStateMap<K,N,S>>
CopyOnWriteSkipListStateMap
.owningStateMap
Modifier and Type | Method and Description |
---|---|
Iterator<StateEntry<K,N,S>> |
getIterator(TypeSerializer<K> keySerializer,
TypeSerializer<N> namespaceSerializer,
TypeSerializer<S> stateSerializer,
StateSnapshotTransformer<S> stateSnapshotTransformer) |
void |
release()
Release the snapshot.
|
void |
writeState(TypeSerializer<K> keySerializer,
TypeSerializer<N> namespaceSerializer,
TypeSerializer<S> stateSerializer,
DataOutputView dov,
StateSnapshotTransformer<S> stateSnapshotTransformer)
Writes the state in this snapshot to output.
|
isOwner
public void release()
StateMapSnapshot
release
in class StateMapSnapshot<K,N,S,CopyOnWriteSkipListStateMap<K,N,S>>
public Iterator<StateEntry<K,N,S>> getIterator(@Nonnull TypeSerializer<K> keySerializer, @Nonnull TypeSerializer<N> namespaceSerializer, @Nonnull TypeSerializer<S> stateSerializer, @Nullable StateSnapshotTransformer<S> stateSnapshotTransformer)
getIterator
in class StateMapSnapshot<K,N,S,CopyOnWriteSkipListStateMap<K,N,S>>
public void writeState(TypeSerializer<K> keySerializer, TypeSerializer<N> namespaceSerializer, TypeSerializer<S> stateSerializer, @Nonnull DataOutputView dov, @Nullable StateSnapshotTransformer<S> stateSnapshotTransformer) throws IOException
StateMapSnapshot
writeState
in class StateMapSnapshot<K,N,S,CopyOnWriteSkipListStateMap<K,N,S>>
keySerializer
- the key serializer.namespaceSerializer
- the namespace serializer.stateSerializer
- the state serializer.dov
- the output.stateSnapshotTransformer
- state transformer, and can be null.IOException
- on write-related problems.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.