Package org.apache.flink.runtime.state
Class NotDuplicatingCheckpointStateToolset
- java.lang.Object
-
- org.apache.flink.runtime.state.NotDuplicatingCheckpointStateToolset
-
- All Implemented Interfaces:
CheckpointStateToolset
public final class NotDuplicatingCheckpointStateToolset extends Object implements CheckpointStateToolset
An empty implementation ofCheckpointStateToolset.
-
-
Constructor Summary
Constructors Constructor Description NotDuplicatingCheckpointStateToolset()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanFastDuplicate(StreamStateHandle stateHandle)Tells if we can duplicate the givenStreamStateHandle.List<StreamStateHandle>duplicate(List<StreamStateHandle> stateHandle)DuplicatesStreamStateHandlesinto the path embedded inside of the class.
-
-
-
Method Detail
-
canFastDuplicate
public boolean canFastDuplicate(StreamStateHandle stateHandle) throws IOException
Description copied from interface:CheckpointStateToolsetTells if we can duplicate the givenStreamStateHandle.This should be a rather cheap operation, preferably not involving any remote accesses.
- Specified by:
canFastDuplicatein interfaceCheckpointStateToolset- Parameters:
stateHandle- The handle to duplicate- Returns:
- true, if we can perform the duplication
- Throws:
IOException
-
duplicate
public List<StreamStateHandle> duplicate(List<StreamStateHandle> stateHandle) throws IOException
Description copied from interface:CheckpointStateToolsetDuplicatesStreamStateHandlesinto the path embedded inside of the class.You should first check if you can duplicate with
CheckpointStateToolset.canFastDuplicate(StreamStateHandle).- Specified by:
duplicatein interfaceCheckpointStateToolset- Parameters:
stateHandle- The handles to duplicate- Returns:
- The duplicated handles
- Throws:
IOException
-
-