Class FileMergingSnapshotManagerBuilder
- java.lang.Object
-
- org.apache.flink.runtime.checkpoint.filemerging.FileMergingSnapshotManagerBuilder
-
public class FileMergingSnapshotManagerBuilder extends Object
A builder that builds theFileMergingSnapshotManager.
-
-
Constructor Summary
Constructors Constructor Description FileMergingSnapshotManagerBuilder(org.apache.flink.api.common.JobID jobId, ResourceID tmResourceId, FileMergingType type)Initialize the builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileMergingSnapshotManagerbuild()Create file-merging snapshot manager based on configuration.FileMergingSnapshotManagerBuildersetFilePoolType(PhysicalFilePool.Type filePoolType)Set the type of physical file pool.FileMergingSnapshotManagerBuildersetIOExecutor(Executor ioExecutor)Set the executor for io operation in manager.FileMergingSnapshotManagerBuildersetMaxFileSize(long maxFileSize)Set the max file size.FileMergingSnapshotManagerBuildersetMaxSpaceAmplification(float amplification)FileMergingSnapshotManagerBuildersetMetricGroup(TaskManagerJobMetricGroup metricGroup)
-
-
-
Constructor Detail
-
FileMergingSnapshotManagerBuilder
public FileMergingSnapshotManagerBuilder(org.apache.flink.api.common.JobID jobId, ResourceID tmResourceId, FileMergingType type)Initialize the builder.- Parameters:
id- the id of the manager.
-
-
Method Detail
-
setMaxFileSize
public FileMergingSnapshotManagerBuilder setMaxFileSize(long maxFileSize)
Set the max file size.
-
setFilePoolType
public FileMergingSnapshotManagerBuilder setFilePoolType(PhysicalFilePool.Type filePoolType)
Set the type of physical file pool.
-
setMaxSpaceAmplification
public FileMergingSnapshotManagerBuilder setMaxSpaceAmplification(float amplification)
-
setIOExecutor
public FileMergingSnapshotManagerBuilder setIOExecutor(@Nullable Executor ioExecutor)
Set the executor for io operation in manager. If null(default), all io operation will be executed synchronously.
-
setMetricGroup
public FileMergingSnapshotManagerBuilder setMetricGroup(TaskManagerJobMetricGroup metricGroup)
-
build
public FileMergingSnapshotManager build()
Create file-merging snapshot manager based on configuration.- Returns:
- the created manager.
-
-