Class 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String toString()  
      void transferFromCheckpoint​(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.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)  
    • 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:
        transferToCheckpoint in class CopyDataTransferStrategy
        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:
        transferFromCheckpoint in class CopyDataTransferStrategy
        Throws:
        IOException