Class ReusableDataTransferStrategy
java.lang.Object
org.apache.flink.state.forst.datatransfer.DataTransferStrategy
org.apache.flink.state.forst.datatransfer.CopyDataTransferStrategy
org.apache.flink.state.forst.datatransfer.ReusableDataTransferStrategy
Data transfer strategy for ForSt DB with a remote DB path. When transferring data between
Checkpoint and DB, this strategy MAY reuse the file from Checkpoint storage.
-
Field Summary
Fields inherited from class org.apache.flink.state.forst.datatransfer.DataTransferStrategy
dbFileSystem, LOG -
Method Summary
Modifier and TypeMethodDescriptiontoString()voidtransferFromCheckpoint(org.apache.flink.runtime.state.StreamStateHandle sourceHandle, org.apache.flink.core.fs.Path targetPath, org.apache.flink.core.fs.CloseableRegistry closeableRegistry) org.apache.flink.runtime.state.IncrementalKeyedStateHandle.HandleAndLocalPathtransferToCheckpoint(org.apache.flink.core.fs.Path dbFilePath, long maxTransferBytes, org.apache.flink.runtime.state.CheckpointStreamFactory checkpointStreamFactory, org.apache.flink.runtime.state.CheckpointedStateScope stateScope, org.apache.flink.core.fs.CloseableRegistry closeableRegistry, org.apache.flink.core.fs.CloseableRegistry tmpResourcesRegistry)
-
Method Details
-
transferToCheckpoint
public org.apache.flink.runtime.state.IncrementalKeyedStateHandle.HandleAndLocalPath transferToCheckpoint(org.apache.flink.core.fs.Path dbFilePath, long maxTransferBytes, org.apache.flink.runtime.state.CheckpointStreamFactory checkpointStreamFactory, org.apache.flink.runtime.state.CheckpointedStateScope stateScope, org.apache.flink.core.fs.CloseableRegistry closeableRegistry, org.apache.flink.core.fs.CloseableRegistry tmpResourcesRegistry) throws IOException - Overrides:
transferToCheckpointin classCopyDataTransferStrategy- Throws:
IOException
-
transferFromCheckpoint
public void transferFromCheckpoint(org.apache.flink.runtime.state.StreamStateHandle sourceHandle, org.apache.flink.core.fs.Path targetPath, org.apache.flink.core.fs.CloseableRegistry closeableRegistry) throws IOException - Overrides:
transferFromCheckpointin classCopyDataTransferStrategy- Throws:
IOException
-
toString
- Overrides:
toStringin classCopyDataTransferStrategy
-