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
-
public class ReusableDataTransferStrategy extends CopyDataTransferStrategy
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()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 Detail
-
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
public String toString()
- Overrides:
toStringin classCopyDataTransferStrategy
-
-