Class FileMergingSnapshotManagerBuilder
java.lang.Object
org.apache.flink.runtime.checkpoint.filemerging.FileMergingSnapshotManagerBuilder
A builder that builds the
FileMergingSnapshotManager.-
Constructor Summary
ConstructorsConstructorDescriptionFileMergingSnapshotManagerBuilder(org.apache.flink.api.common.JobID jobId, ResourceID tmResourceId, FileMergingType type) Initialize the builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create file-merging snapshot manager based on configuration.setFilePoolType(PhysicalFilePool.Type filePoolType) Set the type of physical file pool.setIOExecutor(Executor ioExecutor) Set the executor for io operation in manager.setMaxFileSize(long maxFileSize) Set the max file size.setMaxSpaceAmplification(float amplification) setMetricGroup(TaskManagerJobMetricGroup metricGroup)
-
Constructor Details
-
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 Details
-
setMaxFileSize
Set the max file size. -
setFilePoolType
Set the type of physical file pool. -
setMaxSpaceAmplification
-
setIOExecutor
Set the executor for io operation in manager. If null(default), all io operation will be executed synchronously. -
setMetricGroup
-
build
Create file-merging snapshot manager based on configuration.- Returns:
- the created manager.
-