Class FileCompactStrategy.Builder
java.lang.Object
org.apache.flink.connector.file.sink.compactor.FileCompactStrategy.Builder
- Enclosing class:
- FileCompactStrategy
Builder for
FileCompactStrategy.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()enableCompactionOnCheckpoint(int numCheckpointsBeforeCompaction) Optional, compaction will be triggered when N checkpoints passed since the last triggering, -1 by default indicating no compaction on checkpoint.static FileCompactStrategy.BuildersetNumCompactThreads(int numCompactThreads) Optional, the count of compacting threads in a compactor operator, 1 by default.setSizeThreshold(long sizeThreshold) Optional, compaction will be triggered when the total size of compacting files reaches the threshold. -1 by default, indicating the size is unlimited.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
newBuilder
-
enableCompactionOnCheckpoint
Optional, compaction will be triggered when N checkpoints passed since the last triggering, -1 by default indicating no compaction on checkpoint. -
setSizeThreshold
Optional, compaction will be triggered when the total size of compacting files reaches the threshold. -1 by default, indicating the size is unlimited. -
setNumCompactThreads
Optional, the count of compacting threads in a compactor operator, 1 by default. -
build
-