public class NoopCompactManager extends Object implements CompactManager
CompactManager which never compacts.| Constructor and Description |
|---|
NoopCompactManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNewFile(DataFileMeta file)
Add a new file.
|
List<DataFileMeta> |
allFiles() |
void |
cancelCompaction()
Cancel currently running compaction task.
|
void |
close() |
boolean |
compactNotCompleted()
Check if a compaction is in progress, or if a compaction result remains to be fetched, or if
a compaction should be triggered later.
|
Optional<CompactResult> |
getCompactionResult(boolean blocking)
Get compaction result.
|
boolean |
shouldWaitForLatestCompaction()
Should wait compaction finish.
|
boolean |
shouldWaitForPreparingCheckpoint() |
void |
triggerCompaction(boolean fullCompaction)
Trigger a new compaction task.
|
public boolean shouldWaitForLatestCompaction()
CompactManagershouldWaitForLatestCompaction in interface CompactManagerpublic boolean shouldWaitForPreparingCheckpoint()
shouldWaitForPreparingCheckpoint in interface CompactManagerpublic void addNewFile(DataFileMeta file)
CompactManageraddNewFile in interface CompactManagerpublic List<DataFileMeta> allFiles()
allFiles in interface CompactManagerpublic void triggerCompaction(boolean fullCompaction)
CompactManagertriggerCompaction in interface CompactManagerfullCompaction - if caller needs a guaranteed full compactionpublic Optional<CompactResult> getCompactionResult(boolean blocking) throws ExecutionException, InterruptedException
CompactManagerblocking is true.getCompactionResult in interface CompactManagerExecutionExceptionInterruptedExceptionpublic void cancelCompaction()
CompactManagercancelCompaction in interface CompactManagerpublic boolean compactNotCompleted()
CompactManagercompactNotCompleted in interface CompactManagerpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.