Class DataTransferStrategy

java.lang.Object
org.apache.flink.state.forst.datatransfer.DataTransferStrategy
Direct Known Subclasses:
CopyDataTransferStrategy

public abstract class DataTransferStrategy extends Object
Base class for data transfer strategy, called by ForSt to transfer data between Checkpoint and DB.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.apache.flink.core.fs.FileSystem
     
    protected static final org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    DataTransferStrategy(org.apache.flink.core.fs.FileSystem dbFileSystem)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    transferFromCheckpoint(org.apache.flink.runtime.state.StreamStateHandle sourceHandle, org.apache.flink.core.fs.Path targetPath, org.apache.flink.core.fs.CloseableRegistry closeableRegistry)
     
    abstract 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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOG

      protected static final org.slf4j.Logger LOG
    • dbFileSystem

      @Nonnull protected final org.apache.flink.core.fs.FileSystem dbFileSystem
  • Constructor Details

    • DataTransferStrategy

      protected DataTransferStrategy(@Nonnull org.apache.flink.core.fs.FileSystem dbFileSystem)
  • Method Details

    • transferToCheckpoint

      public abstract 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
      Throws:
      IOException
    • transferFromCheckpoint

      public abstract 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
      Throws:
      IOException