Class EverythingPolicy
java.lang.Object
org.apache.hadoop.hbase.regionserver.compactions.CompactionPolicy
org.apache.hadoop.hbase.regionserver.compactions.SortedCompactionPolicy
org.apache.hadoop.hbase.regionserver.compactions.RatioBasedCompactionPolicy
org.apache.hadoop.hbase.regionserver.compactions.EverythingPolicy
public class EverythingPolicy
extends org.apache.hadoop.hbase.regionserver.compactions.RatioBasedCompactionPolicy
Test Policy to compact everything every time.
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.regionserver.compactions.CompactionPolicy
comConf, storeConfigInfo
-
Constructor Summary
ConstructorDescriptionEverythingPolicy
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.regionserver.StoreConfigInformation storeConfigInfo) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected final ArrayList<org.apache.hadoop.hbase.regionserver.HStoreFile>
applyCompactionPolicy
(ArrayList<org.apache.hadoop.hbase.regionserver.HStoreFile> candidates, boolean mayUseOffPeak, boolean mayBeStuck) Methods inherited from class org.apache.hadoop.hbase.regionserver.compactions.RatioBasedCompactionPolicy
createCompactionRequest, needsCompaction, setMinThreshold, shouldPerformMajorCompaction
Methods inherited from class org.apache.hadoop.hbase.regionserver.compactions.SortedCompactionPolicy
checkMinFilesCriteria, filterBulk, getCurrentEligibleFiles, getNextMajorCompactTime, preSelectCompactionForCoprocessor, removeExcessFiles, selectCompaction, skipLargeFiles, throttleCompaction
Methods inherited from class org.apache.hadoop.hbase.regionserver.compactions.CompactionPolicy
getConf, setConf
-
Constructor Details
-
EverythingPolicy
public EverythingPolicy(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.regionserver.StoreConfigInformation storeConfigInfo) Constructor.- Parameters:
conf
- The Conf.storeConfigInfo
- Info about the store.
-
-
Method Details
-
applyCompactionPolicy
protected final ArrayList<org.apache.hadoop.hbase.regionserver.HStoreFile> applyCompactionPolicy(ArrayList<org.apache.hadoop.hbase.regionserver.HStoreFile> candidates, boolean mayUseOffPeak, boolean mayBeStuck) throws IOException - Overrides:
applyCompactionPolicy
in classorg.apache.hadoop.hbase.regionserver.compactions.RatioBasedCompactionPolicy
- Throws:
IOException
-