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, wait
rewrite
public CompactResult upgrade(int outputLevel, DataFileMeta file) throws Exception
CompactRewriter
ChangelogMergeTreeRewriter
upgrade
in interface CompactRewriter
outputLevel
- new levelfile
- file to be updatedException
- exceptionprotected static List<DataFileMeta> extractFilesFromSections(List<List<SortedRun>> sections)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.