public class EverythingPolicy extends RatioBasedCompactionPolicy
comConf, storeConfigInfo
Constructor and Description |
---|
EverythingPolicy(Configuration conf,
StoreConfigInformation storeConfigInfo)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected ArrayList<StoreFile> |
applyCompactionPolicy(ArrayList<StoreFile> candidates,
boolean mayUseOffPeak,
boolean mayBeStuck)
-- Default minor compaction selection algorithm:
choose CompactSelection from candidates --
First exclude bulk-load files if indicated in configuration.
|
createCompactionRequest, needsCompaction, setMinThreshold, shouldPerformMajorCompaction
checkMinFilesCriteria, filterBulk, getCurrentEligibleFiles, getNextMajorCompactTime, preSelectCompactionForCoprocessor, removeExcessFiles, selectCompaction, skipLargeFiles, throttleCompaction
getConf, setConf
public EverythingPolicy(Configuration conf, StoreConfigInformation storeConfigInfo)
conf
- The Conf.storeConfigInfo
- Info about the store.protected final ArrayList<StoreFile> applyCompactionPolicy(ArrayList<StoreFile> candidates, boolean mayUseOffPeak, boolean mayBeStuck) throws IOException
RatioBasedCompactionPolicy
applyCompactionPolicy
in class RatioBasedCompactionPolicy
candidates
- pre-filtrateIOException