Class DataTransferStrategy
java.lang.Object
org.apache.flink.state.forst.datatransfer.DataTransferStrategy
- Direct Known Subclasses:
CopyDataTransferStrategy
Base class for data transfer strategy, called by ForSt to transfer data between Checkpoint and
DB.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.flink.core.fs.FileSystemprotected static final org.slf4j.Logger -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDataTransferStrategy(org.apache.flink.core.fs.FileSystem dbFileSystem) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidtransferFromCheckpoint(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.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)
-
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
-