K - type of keyN - type of namespaceS - type of statepublic class NestedStateMapSnapshot<K,N,S> extends StateMapSnapshot<K,N,S,NestedStateMap<K,N,S>>
NestedStateMap.owningStateMap| 构造器和说明 |
|---|
NestedStateMapSnapshot(NestedStateMap<K,N,S> owningStateMap)
Creates a new
NestedStateMapSnapshot. |
| 限定符和类型 | 方法和说明 |
|---|---|
Iterator<StateEntry<K,N,S>> |
getIterator(org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer,
org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer,
org.apache.flink.api.common.typeutils.TypeSerializer<S> stateSerializer,
StateSnapshotTransformer<S> stateSnapshotTransformer) |
void |
writeState(org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer,
org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer,
org.apache.flink.api.common.typeutils.TypeSerializer<S> stateSerializer,
org.apache.flink.core.memory.DataOutputView dov,
StateSnapshotTransformer<S> stateSnapshotTransformer)
Writes the state in this snapshot to output.
|
isOwner, releasepublic NestedStateMapSnapshot(NestedStateMap<K,N,S> owningStateMap)
NestedStateMapSnapshot.owningStateMap - the NestedStateMap for which this object represents a snapshot.public Iterator<StateEntry<K,N,S>> getIterator(@Nonnull org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer, @Nonnull org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer, @Nonnull org.apache.flink.api.common.typeutils.TypeSerializer<S> stateSerializer, @Nullable StateSnapshotTransformer<S> stateSnapshotTransformer)
getIterator 在类中 StateMapSnapshot<K,N,S,NestedStateMap<K,N,S>>public void writeState(org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer, org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer, org.apache.flink.api.common.typeutils.TypeSerializer<S> stateSerializer, @Nonnull org.apache.flink.core.memory.DataOutputView dov, @Nullable StateSnapshotTransformer<S> stateSnapshotTransformer) throws IOException
StateMapSnapshotwriteState 在类中 StateMapSnapshot<K,N,S,NestedStateMap<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.