Package org.apache.flink.runtime.state
Interface CheckpointStateToolset
- All Known Implementing Classes:
FsCheckpointStateToolset,NotDuplicatingCheckpointStateToolset
@Internal
public interface CheckpointStateToolset
A toolset of operations that can be performed on a location embedded within the class. Created in
CheckpointStorageWorkerView.-
Method Summary
Modifier and TypeMethodDescriptionbooleancanFastDuplicate(StreamStateHandle stateHandle) Tells if we can duplicate the givenStreamStateHandle.duplicate(List<StreamStateHandle> stateHandle) DuplicatesStreamStateHandlesinto the path embedded inside of the class.
-
Method Details
-
canFastDuplicate
Tells if we can duplicate the givenStreamStateHandle.This should be a rather cheap operation, preferably not involving any remote accesses.
- Parameters:
stateHandle- The handle to duplicate- Returns:
- true, if we can perform the duplication
- Throws:
IOException
-
duplicate
DuplicatesStreamStateHandlesinto the path embedded inside of the class.You should first check if you can duplicate with
canFastDuplicate(StreamStateHandle).- Parameters:
stateHandle- The handles to duplicate- Returns:
- The duplicated handles
- Throws:
IOException
-