Class TestMinorCompaction.MyCompactionPolicy
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.TestMinorCompaction.MyCompactionPolicy
- Enclosing class:
- TestMinorCompaction
public static final class TestMinorCompaction.MyCompactionPolicy
extends org.apache.hadoop.hbase.regionserver.compactions.RatioBasedCompactionPolicy
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.regionserver.compactions.CompactionPolicy
comConf, storeConfigInfo
-
Constructor Summary
ConstructorDescriptionMyCompactionPolicy
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.regionserver.StoreConfigInformation storeConfigInfo) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.regionserver.compactions.CompactionRequestImpl
selectCompaction
(Collection<org.apache.hadoop.hbase.regionserver.HStoreFile> candidateFiles, List<org.apache.hadoop.hbase.regionserver.HStoreFile> filesCompacting, boolean isUserCompaction, boolean mayUseOffPeak, boolean forceMajor) Methods inherited from class org.apache.hadoop.hbase.regionserver.compactions.RatioBasedCompactionPolicy
applyCompactionPolicy, createCompactionRequest, needsCompaction, setMinThreshold, shouldPerformMajorCompaction
Methods inherited from class org.apache.hadoop.hbase.regionserver.compactions.SortedCompactionPolicy
checkMinFilesCriteria, filterBulk, getCurrentEligibleFiles, getNextMajorCompactTime, preSelectCompactionForCoprocessor, removeExcessFiles, skipLargeFiles, throttleCompaction
Methods inherited from class org.apache.hadoop.hbase.regionserver.compactions.CompactionPolicy
getConf, setConf
-
Constructor Details
-
MyCompactionPolicy
public MyCompactionPolicy(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.regionserver.StoreConfigInformation storeConfigInfo)
-
-
Method Details
-
selectCompaction
public org.apache.hadoop.hbase.regionserver.compactions.CompactionRequestImpl selectCompaction(Collection<org.apache.hadoop.hbase.regionserver.HStoreFile> candidateFiles, List<org.apache.hadoop.hbase.regionserver.HStoreFile> filesCompacting, boolean isUserCompaction, boolean mayUseOffPeak, boolean forceMajor) throws IOException - Overrides:
selectCompaction
in classorg.apache.hadoop.hbase.regionserver.compactions.SortedCompactionPolicy
- Throws:
IOException
-