public static class AppendOnlyCompactManager.AutoCompactTask extends CompactTask
CompactTask
impl for append-only table auto-compaction.
This task accepts an already-picked candidate to perform one-time rewrite. And for the
rest of input files, it is the duty of AppendOnlyWriter
to invoke the next time
compaction.
Constructor and Description |
---|
AutoCompactTask(List<DataFileMeta> toCompact,
AppendOnlyCompactManager.CompactRewriter rewriter) |
Modifier and Type | Method and Description |
---|---|
protected CompactResult |
doCompact(List<DataFileMeta> inputs)
Perform compaction.
|
call, logMetric
public AutoCompactTask(List<DataFileMeta> toCompact, AppendOnlyCompactManager.CompactRewriter rewriter)
protected CompactResult doCompact(List<DataFileMeta> inputs) throws Exception
CompactTask
doCompact
in class CompactTask
inputs
- the candidate files to be compactedCompactResult
of compact before and compact after files.Exception
Copyright © 2019–2023 The Apache Software Foundation. All rights reserved.