public class UniversalCompaction extends Object implements CompactStrategy
See RocksDb Universal-Compaction: https://github.com/facebook/rocksdb/wiki/Universal-Compaction.
Constructor and Description |
---|
UniversalCompaction(int maxSizeAmp,
int sizeRatio,
int numRunCompactionTrigger,
int maxSortedRunNum) |
Modifier and Type | Method and Description |
---|---|
Optional<CompactUnit> |
pick(int numLevels,
List<LevelSortedRun> runs)
Pick compaction unit from runs.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
pickFullCompaction
public UniversalCompaction(int maxSizeAmp, int sizeRatio, int numRunCompactionTrigger, int maxSortedRunNum)
public Optional<CompactUnit> pick(int numLevels, List<LevelSortedRun> runs)
CompactStrategy
pick
in interface CompactStrategy
Copyright © 2019–2023 The Apache Software Foundation. All rights reserved.