Class CopyDataTransferStrategy
- java.lang.Object
-
- org.apache.flink.state.forst.datatransfer.DataTransferStrategy
-
- org.apache.flink.state.forst.datatransfer.CopyDataTransferStrategy
-
- Direct Known Subclasses:
ReusableDataTransferStrategy
public class CopyDataTransferStrategy extends DataTransferStrategy
Data transfer strategy for ForSt DB without a remote DB path. It always copies the file to/from checkpoint storage when transferring data.
-
-
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- Specified by:
transferToCheckpointin classDataTransferStrategy- 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- Specified by:
transferFromCheckpointin classDataTransferStrategy- Throws:
IOException
-
-