public interface CompactRewriter extends Closeable
| Modifier and Type | Method and Description |
|---|---|
CompactResult |
rewrite(int outputLevel,
boolean dropDelete,
List<List<SortedRun>> sections)
Rewrite sections to new level.
|
CompactResult |
upgrade(int outputLevel,
DataFileMeta file)
Upgrade file to new level, usually file data is not rewritten, only the metadata is updated.
|
CompactResult rewrite(int outputLevel, boolean dropDelete, List<List<SortedRun>> sections) throws Exception
outputLevel - new leveldropDelete - whether to drop the deletion, see MergeTreeCompactManager.triggerCompaction(boolean)sections - list of sections (section is a list of SortedRuns, and key intervals
between sections do not overlap)Exception - exceptionCompactResult upgrade(int outputLevel, DataFileMeta file) throws Exception
ChangelogMergeTreeRewriteroutputLevel - new levelfile - file to be updatedException - exceptionCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.