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

    Constructors
    Constructor
    Description
    EverythingPolicy(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.regionserver.StoreConfigInformation storeConfigInfo)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class org.apache.hadoop.hbase.regionserver.compactions.RatioBasedCompactionPolicy
      Throws:
      IOException