Uses of Interface
org.apache.flink.runtime.state.StreamStateHandle
Packages that use StreamStateHandle
Package
Description
-
Uses of StreamStateHandle in org.apache.flink.runtime.checkpoint
Methods in org.apache.flink.runtime.checkpoint that return StreamStateHandle -
Uses of StreamStateHandle in org.apache.flink.runtime.checkpoint.channel
Methods in org.apache.flink.runtime.checkpoint.channel with parameters of type StreamStateHandleModifier and TypeMethodDescriptionvoidChannelStatePendingResult.finishResult(StreamStateHandle stateHandle) -
Uses of StreamStateHandle in org.apache.flink.runtime.checkpoint.filemerging
Methods in org.apache.flink.runtime.checkpoint.filemerging with parameters of type StreamStateHandleModifier and TypeMethodDescriptionbooleanFileMergingSnapshotManager.couldReusePreviousStateHandle(StreamStateHandle stateHandle) Check whether previous state handles could further be reused considering the space amplification.booleanFileMergingSnapshotManagerBase.couldReusePreviousStateHandle(StreamStateHandle stateHandle) static booleanFileMergingSnapshotManager.isFileMergingHandle(StreamStateHandle handle) Method parameters in org.apache.flink.runtime.checkpoint.filemerging with type arguments of type StreamStateHandleModifier and TypeMethodDescriptionvoidFileMergingSnapshotManager.reusePreviousStateHandle(long checkpointId, Collection<? extends StreamStateHandle> stateHandles) A callback method which is called when previous state handles are reused by following checkpoint(s).voidFileMergingSnapshotManagerBase.reusePreviousStateHandle(long checkpointId, Collection<? extends StreamStateHandle> stateHandles) -
Uses of StreamStateHandle in org.apache.flink.runtime.checkpoint.metadata
Methods in org.apache.flink.runtime.checkpoint.metadata that return StreamStateHandleModifier and TypeMethodDescriptionstatic StreamStateHandleMetadataV3Serializer.deserializeStreamStateHandle(DataInputStream dis) Methods in org.apache.flink.runtime.checkpoint.metadata with parameters of type StreamStateHandleModifier and TypeMethodDescriptionstatic voidMetadataV3Serializer.serializeStreamStateHandle(StreamStateHandle stateHandle, DataOutputStream dos) -
Uses of StreamStateHandle in org.apache.flink.runtime.state
Classes in org.apache.flink.runtime.state with type parameters of type StreamStateHandleModifier and TypeClassDescriptionclassAbstract class to implement custom checkpoint output streams which should not be closable for user code.Subinterfaces of StreamStateHandle in org.apache.flink.runtime.stateModifier and TypeInterfaceDescriptioninterfaceInterface of a state handle for operator state.Classes in org.apache.flink.runtime.state that implement StreamStateHandleModifier and TypeClassDescriptionclassAKeyGroupsStateHandlethat describes a savepoint in the unified format.classA handle to the partitioned stream operator state after it has been checkpointed.classState handle for partitionable operator state.classA placeholder state handle for shared state that will replaced by an original that was created in a previous checkpoint.classRetrievableStreamStateHandle<T extends Serializable>Wrapper around aStreamStateHandleto make the referenced state object retrievable trough a simple get call.static classAn object with empty discardState for registering.Fields in org.apache.flink.runtime.state declared as StreamStateHandleModifier and TypeFieldDescriptionprotected final StreamStateHandleAbstractIncrementalStateHandle.metaStateHandlePrimary meta data state of the incremental checkpoint.Methods in org.apache.flink.runtime.state that return StreamStateHandleModifier and TypeMethodDescriptionabstract StreamStateHandleCheckpointStateOutputStream.closeAndGetHandle()Closes the stream and gets a state handle that can create an input stream producing the data written to this stream.DuplicatingCheckpointOutputStream.closeAndGetHandle()DuplicatingCheckpointOutputStream.closeAndGetPrimaryHandle()Returns the state handle from theDuplicatingCheckpointOutputStream.primaryOutputStream.DuplicatingCheckpointOutputStream.closeAndGetSecondaryHandle()Returns the state handle from theDuplicatingCheckpointOutputStream.secondaryOutputStream.AbstractChannelStateHandle.getDelegate()KeyGroupsStateHandle.getDelegateStateHandle()OperatorStateHandle.getDelegateStateHandle()Returns the underlying stream state handle that points to the state data.OperatorStreamStateHandle.getDelegateStateHandle()IncrementalKeyedStateHandle.HandleAndLocalPath.getHandle()CompletedCheckpointStorageLocation.getMetadataHandle()Gets the state handle to the checkpoint's metadata.AbstractIncrementalStateHandle.getMetaDataStateHandle()IncrementalKeyedStateHandle.getMetaDataStateHandle()default StreamStateHandleSharedStateRegistry.registerReference(SharedStateRegistryKey registrationKey, StreamStateHandle state, long checkpointID) Shortcut forSharedStateRegistry.registerReference(SharedStateRegistryKey, StreamStateHandle, long, boolean)with preventDiscardingCreatedCheckpoint = false.SharedStateRegistry.registerReference(SharedStateRegistryKey registrationKey, StreamStateHandle state, long checkpointID, boolean preventDiscardingCreatedCheckpoint) Register a reference to the given shared state in the registry.SharedStateRegistryImpl.registerReference(SharedStateRegistryKey registrationKey, StreamStateHandle newHandle, long checkpointID, boolean preventDiscardingCreatedCheckpoint) Methods in org.apache.flink.runtime.state that return types with arguments of type StreamStateHandleModifier and TypeMethodDescriptionCheckpointStreamWithResultProvider.closeAndFinalizeCheckpointStreamResult()Closes the stream ans returns a snapshot result with the stream handle(s).CheckpointStreamWithResultProvider.PrimaryAndSecondaryStream.closeAndFinalizeCheckpointStreamResult()CheckpointStreamWithResultProvider.PrimaryStreamOnly.closeAndFinalizeCheckpointStreamResult()static Stream<StreamStateHandle>AbstractChannelStateHandle.collectUniqueDelegates(Stream<StateObjectCollection<? extends AbstractChannelStateHandle<?>>> collections) CheckpointStateToolset.duplicate(List<StreamStateHandle> stateHandle) DuplicatesStreamStateHandlesinto the path embedded inside of the class.CheckpointStreamFactory.duplicate(List<StreamStateHandle> stateHandles, CheckpointedStateScope scope) DuplicatesStreamStateHandleinto the path corresponding to * the givenCheckpointedStateScope.NotDuplicatingCheckpointStateToolset.duplicate(List<StreamStateHandle> stateHandle) IncrementalRemoteKeyedStateHandle.streamSubHandles()Methods in org.apache.flink.runtime.state with parameters of type StreamStateHandleModifier and TypeMethodDescriptionbooleanCheckpointStateToolset.canFastDuplicate(StreamStateHandle stateHandle) Tells if we can duplicate the givenStreamStateHandle.booleanCheckpointStreamFactory.canFastDuplicate(StreamStateHandle stateHandle, CheckpointedStateScope scope) Tells if we can duplicate the givenStreamStateHandleinto the path corresponding to the givenCheckpointedStateScope.booleanNotDuplicatingCheckpointStateToolset.canFastDuplicate(StreamStateHandle stateHandle) default booleanCheckpointStreamFactory.couldReuseStateHandle(StreamStateHandle stateHandle) A pre-check hook before the checkpoint writer want to reuse a state handle, if this returns false, it is not recommended for the writer to rewrite the state file considering the space amplification.CheckpointStreamWithResultProvider.KeyedStateHandleFactory.create(KeyGroupRangeOffsets keyGroupRangeOffsets, StreamStateHandle streamStateHandle) static SharedStateRegistryKeySharedStateRegistryKey.forStreamStateHandle(StreamStateHandle handle) Create a unique key based on physical id.IncrementalKeyedStateHandle.HandleAndLocalPath.of(StreamStateHandle handle, String localPath) default StreamStateHandleSharedStateRegistry.registerReference(SharedStateRegistryKey registrationKey, StreamStateHandle state, long checkpointID) Shortcut forSharedStateRegistry.registerReference(SharedStateRegistryKey, StreamStateHandle, long, boolean)with preventDiscardingCreatedCheckpoint = false.SharedStateRegistry.registerReference(SharedStateRegistryKey registrationKey, StreamStateHandle state, long checkpointID, boolean preventDiscardingCreatedCheckpoint) Register a reference to the given shared state in the registry.SharedStateRegistryImpl.registerReference(SharedStateRegistryKey registrationKey, StreamStateHandle newHandle, long checkpointID, boolean preventDiscardingCreatedCheckpoint) voidIncrementalKeyedStateHandle.HandleAndLocalPath.replaceHandle(StreamStateHandle registryReturned) Replace the StreamStateHandle with the registry returned one.IncrementalRemoteKeyedStateHandle.restore(UUID backendIdentifier, KeyGroupRange keyGroupRange, long checkpointId, List<IncrementalKeyedStateHandle.HandleAndLocalPath> sharedState, List<IncrementalKeyedStateHandle.HandleAndLocalPath> privateState, StreamStateHandle metaStateHandle, long persistedSizeOfThisCheckpoint, StateHandleID stateHandleId) static KeyGroupsStateHandleKeyGroupsStateHandle.restore(KeyGroupRangeOffsets groupRangeOffsets, StreamStateHandle streamStateHandle, StateHandleID stateHandleId) Method parameters in org.apache.flink.runtime.state with type arguments of type StreamStateHandleModifier and TypeMethodDescriptionCheckpointStateToolset.duplicate(List<StreamStateHandle> stateHandle) DuplicatesStreamStateHandlesinto the path embedded inside of the class.CheckpointStreamFactory.duplicate(List<StreamStateHandle> stateHandles, CheckpointedStateScope scope) DuplicatesStreamStateHandleinto the path corresponding to * the givenCheckpointedStateScope.NotDuplicatingCheckpointStateToolset.duplicate(List<StreamStateHandle> stateHandle) default voidCheckpointStreamFactory.reusePreviousStateHandle(Collection<? extends StreamStateHandle> previousHandle) A callback method when some previous handle is reused.static SnapshotResult<KeyedStateHandle>CheckpointStreamWithResultProvider.toKeyedStateHandleSnapshotResult(SnapshotResult<StreamStateHandle> snapshotResult, KeyGroupRangeOffsets keyGroupRangeOffsets, CheckpointStreamWithResultProvider.KeyedStateHandleFactory stateHandleFactory) Helper method that takes aSnapshotResult<StreamStateHandle>and aKeyGroupRangeOffsetsand creates aSnapshotResult<KeyedStateHandle>by combining the key groups offsets with all the present stream state handles.Constructors in org.apache.flink.runtime.state with parameters of type StreamStateHandleModifierConstructorDescriptionAbstractIncrementalStateHandle(UUID backendIdentifier, KeyGroupRange keyGroupRange, long checkpointId, List<IncrementalKeyedStateHandle.HandleAndLocalPath> sharedState, StreamStateHandle metaStateHandle, StateHandleID stateHandleId) IncrementalLocalKeyedStateHandle(UUID backendIdentifier, long checkpointId, DirectoryStateHandle directoryStateHandle, KeyGroupRange keyGroupRange, StreamStateHandle metaDataState, List<IncrementalKeyedStateHandle.HandleAndLocalPath> sharedState) IncrementalRemoteKeyedStateHandle(UUID backendIdentifier, KeyGroupRange keyGroupRange, long checkpointId, List<IncrementalKeyedStateHandle.HandleAndLocalPath> sharedState, List<IncrementalKeyedStateHandle.HandleAndLocalPath> privateState, StreamStateHandle metaStateHandle) IncrementalRemoteKeyedStateHandle(UUID backendIdentifier, KeyGroupRange keyGroupRange, long checkpointId, List<IncrementalKeyedStateHandle.HandleAndLocalPath> sharedState, List<IncrementalKeyedStateHandle.HandleAndLocalPath> privateState, StreamStateHandle metaStateHandle, long persistedSizeOfThisCheckpoint) protectedIncrementalRemoteKeyedStateHandle(UUID backendIdentifier, KeyGroupRange keyGroupRange, long checkpointId, List<IncrementalKeyedStateHandle.HandleAndLocalPath> sharedState, List<IncrementalKeyedStateHandle.HandleAndLocalPath> privateState, StreamStateHandle metaStateHandle, long persistedSizeOfThisCheckpoint, StateHandleID stateHandleId) InputChannelStateHandle(int subtaskIndex, InputChannelInfo info, StreamStateHandle delegate, List<Long> offset, long size) InputChannelStateHandle(int subtaskIndex, InputChannelInfo info, StreamStateHandle delegate, AbstractChannelStateHandle.StateContentMetaInfo contentMetaInfo) InputChannelStateHandle(InputChannelInfo info, StreamStateHandle delegate, List<Long> offset) KeyGroupsSavepointStateHandle(KeyGroupRangeOffsets groupRangeOffsets, StreamStateHandle streamStateHandle) KeyGroupsStateHandle(KeyGroupRangeOffsets groupRangeOffsets, StreamStateHandle streamStateHandle) OperatorStreamStateHandle(Map<String, OperatorStateHandle.StateMetaInfo> stateNameToPartitionOffsets, StreamStateHandle delegateStateHandle) ResultSubpartitionStateHandle(int subtaskIndex, ResultSubpartitionInfo info, StreamStateHandle delegate, List<Long> offset, long size) ResultSubpartitionStateHandle(int subtaskIndex, ResultSubpartitionInfo info, StreamStateHandle delegate, AbstractChannelStateHandle.StateContentMetaInfo contentMetaInfo) ResultSubpartitionStateHandle(ResultSubpartitionInfo info, StreamStateHandle delegate, List<Long> offset) RetrievableStreamStateHandle(StreamStateHandle streamStateHandle) -
Uses of StreamStateHandle in org.apache.flink.runtime.state.changelog
Methods in org.apache.flink.runtime.state.changelog that return types with arguments of type StreamStateHandleModifier and TypeMethodDescriptionList<org.apache.flink.api.java.tuple.Tuple2<StreamStateHandle,Long>> ChangelogStateHandleStreamImpl.getHandlesAndOffsets()Methods in org.apache.flink.runtime.state.changelog with parameters of type StreamStateHandleModifier and TypeMethodDescriptionorg.apache.flink.util.CloseableIterator<StateChange>StateChangelogHandleStreamHandleReader.StateChangeIterator.read(StreamStateHandle handle, long offset) voidLocalChangelogRegistry.register(StreamStateHandle handle, long checkpointID) Called upon ChangelogKeyedStateBackend#notifyCheckpointComplete.voidLocalChangelogRegistryImpl.register(StreamStateHandle handle, long checkpointID) Method parameters in org.apache.flink.runtime.state.changelog with type arguments of type StreamStateHandleModifier and TypeMethodDescriptionChangelogStateHandleStreamImpl.restore(List<org.apache.flink.api.java.tuple.Tuple2<StreamStateHandle, Long>> handlesAndOffsets, KeyGroupRange keyGroupRange, long size, long incrementalSize, String storageIdentifier, StateHandleID stateHandleID) Constructor parameters in org.apache.flink.runtime.state.changelog with type arguments of type StreamStateHandleModifierConstructorDescriptionChangelogStateHandleStreamImpl(List<org.apache.flink.api.java.tuple.Tuple2<StreamStateHandle, Long>> handlesAndOffsets, KeyGroupRange keyGroupRange, long size, long incrementalSize, String storageIdentifier) -
Uses of StreamStateHandle in org.apache.flink.runtime.state.filemerging
Classes in org.apache.flink.runtime.state.filemerging that implement StreamStateHandleModifier and TypeClassDescriptionclassThis state handle represents a directory, usually used to be registered toSharedStateRegistryto track the life cycle of the directory.classAn emptyFileMergingOperatorStreamStateHandlethat is only used as a placeholder to prevent file merging directory from being deleted.classAn emptySegmentFileStateHandlethat is only used as a placeholder.classAOperatorStreamStateHandlethat works for file merging checkpoints.classFileStateHandlefor state that was written to a file segment.Constructors in org.apache.flink.runtime.state.filemerging with parameters of type StreamStateHandleModifierConstructorDescriptionEmptyFileMergingOperatorStreamStateHandle(DirectoryStreamStateHandle taskOwnedDirHandle, DirectoryStreamStateHandle sharedDirHandle, Map<String, OperatorStateHandle.StateMetaInfo> stateNameToPartitionOffsets, StreamStateHandle delegateStateHandle) FileMergingOperatorStreamStateHandle(DirectoryStreamStateHandle taskOwnedDirHandle, DirectoryStreamStateHandle sharedDirHandle, Map<String, OperatorStateHandle.StateMetaInfo> stateNameToPartitionOffsets, StreamStateHandle delegateStateHandle) -
Uses of StreamStateHandle in org.apache.flink.runtime.state.filesystem
Classes in org.apache.flink.runtime.state.filesystem that implement StreamStateHandleModifier and TypeClassDescriptionclassStreamStateHandlefor state that was written to a file stream.classAStreamStateHandlefor state that was written to a file stream.Methods in org.apache.flink.runtime.state.filesystem that return StreamStateHandleModifier and TypeMethodDescriptionFsCheckpointStreamFactory.FsCheckpointStateOutputStream.closeAndGetHandle()Methods in org.apache.flink.runtime.state.filesystem that return types with arguments of type StreamStateHandleModifier and TypeMethodDescriptionFsCheckpointStateToolset.duplicate(List<StreamStateHandle> stateHandles) FsCheckpointStreamFactory.duplicate(List<StreamStateHandle> stateHandles, CheckpointedStateScope scope) FsMergingCheckpointStorageLocation.duplicate(List<StreamStateHandle> stateHandles, CheckpointedStateScope scope) Methods in org.apache.flink.runtime.state.filesystem with parameters of type StreamStateHandleModifier and TypeMethodDescriptionbooleanFsCheckpointStateToolset.canFastDuplicate(StreamStateHandle stateHandle) booleanFsCheckpointStreamFactory.canFastDuplicate(StreamStateHandle stateHandle, CheckpointedStateScope scope) booleanFsMergingCheckpointStorageLocation.canFastDuplicate(StreamStateHandle stateHandle, CheckpointedStateScope scope) booleanFsMergingCheckpointStorageLocation.couldReuseStateHandle(StreamStateHandle stateHandle) Method parameters in org.apache.flink.runtime.state.filesystem with type arguments of type StreamStateHandleModifier and TypeMethodDescriptionFsCheckpointStateToolset.duplicate(List<StreamStateHandle> stateHandles) FsCheckpointStreamFactory.duplicate(List<StreamStateHandle> stateHandles, CheckpointedStateScope scope) FsMergingCheckpointStorageLocation.duplicate(List<StreamStateHandle> stateHandles, CheckpointedStateScope scope) voidFsMergingCheckpointStorageLocation.reusePreviousStateHandle(Collection<? extends StreamStateHandle> previousHandle) -
Uses of StreamStateHandle in org.apache.flink.runtime.state.memory
Classes in org.apache.flink.runtime.state.memory that implement StreamStateHandleModifier and TypeClassDescriptionclassA state handle that contains stream state in a byte array.Methods in org.apache.flink.runtime.state.memory that return StreamStateHandleModifier and TypeMethodDescriptionMemCheckpointStreamFactory.MemoryCheckpointOutputStream.closeAndGetHandle()Methods in org.apache.flink.runtime.state.memory that return types with arguments of type StreamStateHandleModifier and TypeMethodDescriptionMemCheckpointStreamFactory.duplicate(List<StreamStateHandle> stateHandles, CheckpointedStateScope scope) Methods in org.apache.flink.runtime.state.memory with parameters of type StreamStateHandleModifier and TypeMethodDescriptionbooleanMemCheckpointStreamFactory.canFastDuplicate(StreamStateHandle stateHandle, CheckpointedStateScope scope) Method parameters in org.apache.flink.runtime.state.memory with type arguments of type StreamStateHandleModifier and TypeMethodDescriptionMemCheckpointStreamFactory.duplicate(List<StreamStateHandle> stateHandles, CheckpointedStateScope scope)