Class HeapPriorityQueueStateSnapshot<T>
java.lang.Object
org.apache.flink.runtime.state.heap.HeapPriorityQueueStateSnapshot<T>
- Type Parameters:
T- type of the state elements.
- All Implemented Interfaces:
StateSnapshot
This class represents the snapshot of an
HeapPriorityQueueSet.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.runtime.state.StateSnapshot
StateSnapshot.StateKeyGroupWriter -
Method Summary
Modifier and TypeMethodDescriptiongetIteratorForKeyGroup(int keyGroupId) This method returnsStateSnapshot.StateKeyGroupWriterand should be called in the asynchronous part of the snapshot.Returns a snapshot of the state's meta data.voidrelease()Release the snapshot.
-
Method Details
-
getKeyGroupWriter
Description copied from interface:StateSnapshotThis method returnsStateSnapshot.StateKeyGroupWriterand should be called in the asynchronous part of the snapshot.- Specified by:
getKeyGroupWriterin interfaceStateSnapshot
-
getIteratorForKeyGroup
-
getMetaInfoSnapshot
Description copied from interface:StateSnapshotReturns a snapshot of the state's meta data.- Specified by:
getMetaInfoSnapshotin interfaceStateSnapshot
-
getMetaInfo
-
release
public void release()Description copied from interface:StateSnapshotRelease the snapshot. All snapshots should be released when they are no longer used because some implementation can only release resources after a release. ProducedStateSnapshot.StateKeyGroupWritershould no longer be used after calling this method.- Specified by:
releasein interfaceStateSnapshot
-