public interface CompactManager
Modifier and Type | Method and Description |
---|---|
void |
addNewFile(DataFileMeta file)
Add a new file.
|
void |
cancelCompaction()
Cancel currently running compaction task.
|
Optional<CompactResult> |
getCompactionResult(boolean blocking)
Get compaction result.
|
boolean |
shouldWaitCompaction()
Should wait compaction finish.
|
void |
triggerCompaction(boolean fullCompaction)
Trigger a new compaction task.
|
boolean shouldWaitCompaction()
void addNewFile(DataFileMeta file)
void triggerCompaction(boolean fullCompaction)
fullCompaction
- if caller needs a guaranteed full compactionOptional<CompactResult> getCompactionResult(boolean blocking) throws ExecutionException, InterruptedException
blocking
is true.void cancelCompaction()
Copyright © 2019–2023 The Apache Software Foundation. All rights reserved.