public abstract class AbstractCompactRewriter extends Object implements CompactRewriter
CompactRewriter.| Constructor and Description |
|---|
AbstractCompactRewriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected static List<DataFileMeta> |
extractFilesFromSections(List<List<SortedRun>> sections) |
CompactResult |
upgrade(int outputLevel,
DataFileMeta file)
Upgrade file to new level, usually file data is not rewritten, only the metadata is updated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrewritepublic CompactResult upgrade(int outputLevel, DataFileMeta file) throws Exception
CompactRewriterChangelogMergeTreeRewriterupgrade in interface CompactRewriteroutputLevel - new levelfile - file to be updatedException - exceptionprotected static List<DataFileMeta> extractFilesFromSections(List<List<SortedRun>> sections)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.