T - type of the queue elements.public class HeapPriorityQueueSnapshotRestoreWrapper<T extends HeapPriorityQueueElement> extends Object implements StateSnapshotRestore
| 构造器和说明 |
|---|
HeapPriorityQueueSnapshotRestoreWrapper(HeapPriorityQueueSet<T> priorityQueue,
RegisteredPriorityQueueStateBackendMetaInfo<T> metaInfo,
KeyExtractorFunction<T> keyExtractorFunction,
KeyGroupRange localKeyGroupRange,
int totalKeyGroups) |
| 限定符和类型 | 方法和说明 |
|---|---|
HeapPriorityQueueSnapshotRestoreWrapper<T> |
forUpdatedSerializer(org.apache.flink.api.common.typeutils.TypeSerializer<T> updatedSerializer)
Returns a deep copy of the snapshot, where the serializer is changed to the given serializer.
|
HeapPriorityQueueSnapshotRestoreWrapper<T> |
forUpdatedSerializer(org.apache.flink.api.common.typeutils.TypeSerializer<T> updatedSerializer,
boolean allowFutureMetadataUpdates)
Returns a deep copy of the snapshot, where the serializer is re-registered by the serializer
snapshot or changed to the given serializer.
|
RegisteredPriorityQueueStateBackendMetaInfo<T> |
getMetaInfo() |
HeapPriorityQueueSet<T> |
getPriorityQueue() |
StateSnapshotKeyGroupReader |
keyGroupReader(int readVersionHint)
This method returns a
StateSnapshotKeyGroupReader that can be used to restore the
state on a per-key-group basis. |
HeapPriorityQueueStateSnapshot<T> |
stateSnapshot()
Returns a snapshot of the state.
|
public HeapPriorityQueueSnapshotRestoreWrapper(@Nonnull HeapPriorityQueueSet<T> priorityQueue, @Nonnull RegisteredPriorityQueueStateBackendMetaInfo<T> metaInfo, @Nonnull KeyExtractorFunction<T> keyExtractorFunction, @Nonnull KeyGroupRange localKeyGroupRange, int totalKeyGroups)
@Nonnull public HeapPriorityQueueStateSnapshot<T> stateSnapshot()
StateSnapshotRestorestateSnapshot 在接口中 StateSnapshotRestore@Nonnull public StateSnapshotKeyGroupReader keyGroupReader(int readVersionHint)
StateSnapshotRestoreStateSnapshotKeyGroupReader that can be used to restore the
state on a per-key-group basis. This method tries to return a reader for the given version
hint.keyGroupReader 在接口中 StateSnapshotRestorereadVersionHint - the required version of the state to read.@Nonnull public HeapPriorityQueueSet<T> getPriorityQueue()
@Nonnull public RegisteredPriorityQueueStateBackendMetaInfo<T> getMetaInfo()
public HeapPriorityQueueSnapshotRestoreWrapper<T> forUpdatedSerializer(@Nonnull org.apache.flink.api.common.typeutils.TypeSerializer<T> updatedSerializer)
public HeapPriorityQueueSnapshotRestoreWrapper<T> forUpdatedSerializer(@Nonnull org.apache.flink.api.common.typeutils.TypeSerializer<T> updatedSerializer, boolean allowFutureMetadataUpdates)
updatedSerializer - updated serializer.allowFutureMetadataUpdates - whether allow metadata to update in the future or not.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.