@InterfaceAudience.Private public class ExploringCompactionPolicy extends RatioBasedCompactionPolicy
comConf, storeConfigInfo
Constructor and Description |
---|
ExploringCompactionPolicy(org.apache.hadoop.conf.Configuration conf,
StoreConfigInformation storeConfigInfo)
Constructor for ExploringCompactionPolicy.
|
Modifier and Type | Method and Description |
---|---|
protected ArrayList<StoreFile> |
applyCompactionPolicy(ArrayList<StoreFile> candidates,
boolean mayUseOffPeak,
boolean mightBeStuck)
-- Default minor compaction selection algorithm:
choose CompactSelection from candidates --
First exclude bulk-load files if indicated in configuration.
|
List<StoreFile> |
applyCompactionPolicy(List<StoreFile> candidates,
boolean mightBeStuck,
boolean mayUseOffPeak,
int minFiles,
int maxFiles) |
createCompactionRequest, needsCompaction, setMinThreshold, shouldPerformMajorCompaction
checkMinFilesCriteria, filterBulk, getCurrentEligibleFiles, getNextMajorCompactTime, preSelectCompactionForCoprocessor, removeExcessFiles, selectCompaction, skipLargeFiles, throttleCompaction
getConf, setConf
public ExploringCompactionPolicy(org.apache.hadoop.conf.Configuration conf, StoreConfigInformation storeConfigInfo)
conf
- The configuration objectstoreConfigInfo
- An object to provide info about the store.protected final ArrayList<StoreFile> applyCompactionPolicy(ArrayList<StoreFile> candidates, boolean mayUseOffPeak, boolean mightBeStuck) throws IOException
RatioBasedCompactionPolicy
applyCompactionPolicy
in class RatioBasedCompactionPolicy
candidates
- pre-filtrateIOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.