public interface CompactManager extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
addNewFile(DataFileMeta file)
Add a new file.
|
Collection<DataFileMeta> |
allFiles() |
void |
cancelCompaction()
Cancel currently running compaction task.
|
Optional<CompactResult> |
getCompactionResult(boolean blocking)
Get compaction result.
|
boolean |
isCompacting()
Check if a compaction is in progress, or if a compaction result remains to be fetched.
|
boolean |
shouldWaitForLatestCompaction()
Should wait compaction finish.
|
boolean |
shouldWaitForPreparingCheckpoint() |
void |
triggerCompaction(boolean fullCompaction)
Trigger a new compaction task.
|
boolean shouldWaitForLatestCompaction()
boolean shouldWaitForPreparingCheckpoint()
void addNewFile(DataFileMeta file)
Collection<DataFileMeta> allFiles()
void triggerCompaction(boolean fullCompaction)
fullCompaction
- if caller needs a guaranteed full compactionOptional<CompactResult> getCompactionResult(boolean blocking) throws ExecutionException, InterruptedException
blocking
is true.void cancelCompaction()
boolean isCompacting()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.