public static class FileCompactStrategy.Builder extends Object
FileCompactStrategy
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
FileCompactStrategy |
build() |
FileCompactStrategy.Builder |
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.Builder |
newBuilder() |
FileCompactStrategy.Builder |
setNumCompactThreads(int numCompactThreads)
Optional, the count of compacting threads in a compactor operator, 1 by default.
|
FileCompactStrategy.Builder |
setSizeThreshold(long sizeThreshold)
Optional, compaction will be triggered when the total size of compacting files reaches
the threshold.
|
public static FileCompactStrategy.Builder newBuilder()
public FileCompactStrategy.Builder enableCompactionOnCheckpoint(int numCheckpointsBeforeCompaction)
public FileCompactStrategy.Builder setSizeThreshold(long sizeThreshold)
public FileCompactStrategy.Builder setNumCompactThreads(int numCompactThreads)
public FileCompactStrategy build()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.