public class MergeTreeCompactTask extends CompactTask
Constructor and Description |
---|
MergeTreeCompactTask(Comparator<InternalRow> keyComparator,
long minFileSize,
CompactRewriter rewriter,
CompactUnit unit,
boolean dropDelete,
int maxLevel,
CompactionMetrics.Reporter metricsReporter,
java.util.function.Supplier<CompactDeletionFile> compactDfSupplier) |
Modifier and Type | Method and Description |
---|---|
protected CompactResult |
doCompact()
Perform compaction.
|
protected String |
logMetric(long startMillis,
List<DataFileMeta> compactBefore,
List<DataFileMeta> compactAfter) |
call
public MergeTreeCompactTask(Comparator<InternalRow> keyComparator, long minFileSize, CompactRewriter rewriter, CompactUnit unit, boolean dropDelete, int maxLevel, @Nullable CompactionMetrics.Reporter metricsReporter, java.util.function.Supplier<CompactDeletionFile> compactDfSupplier)
protected CompactResult doCompact() throws Exception
CompactTask
doCompact
in class CompactTask
CompactResult
of compact before and compact after files.Exception
protected String logMetric(long startMillis, List<DataFileMeta> compactBefore, List<DataFileMeta> compactAfter)
logMetric
in class CompactTask
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.