org.apache.hadoop.hbase.regionserver.compactions
Class CompactionConfiguration

java.lang.Object
  extended by org.apache.hadoop.hbase.regionserver.compactions.CompactionConfiguration

@InterfaceAudience.Private
public class CompactionConfiguration
extends Object

Compaction configuration for a particular instance of HStore. Takes into account both global settings and ones set on the column family/store. Control knobs for default compaction algorithm:

maxCompactSize - upper bound on file size to be included in minor compactions minCompactSize - lower bound below which compaction is selected without ratio test minFilesToCompact - lower bound on number of files in any minor compaction maxFilesToCompact - upper bound on number of files in any minor compaction compactionRatio - Ratio used for compaction

Set parameter as "hbase.hstore.compaction."


Field Summary
static String COMPACTION_POLICY_CLASS_FOR_DATE_TIERED_WINDOWS_KEY
           
static String DATE_TIERED_COMPACTION_WINDOW_FACTORY_CLASS_KEY
           
static String DATE_TIERED_INCOMING_WINDOW_MIN_KEY
           
static String DATE_TIERED_MAX_AGE_MILLIS_KEY
           
static String DATE_TIERED_SINGLE_OUTPUT_FOR_MINOR_COMPACTION_KEY
           
static String HBASE_HSTORE_MIN_LOCALITY_TO_SKIP_MAJOR_COMPACT
           
static String MAX_KEY
           
static String MIN_KEY
           
static String RATIO_KEY
           
 
Method Summary
 String getCompactionPolicyForDateTieredWindow()
           
 String getDateTieredCompactionWindowFactory()
           
 int getDateTieredIncomingWindowMin()
           
 long getDateTieredMaxStoreFileAgeMillis()
           
 int getMinFilesToCompact()
           
 void setMinFilesToCompact(int threshold)
          Set upper bound on number of files to be included in minor compactions
 String toString()
           
 boolean useDateTieredSingleOutputForMinorCompaction()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HBASE_HSTORE_MIN_LOCALITY_TO_SKIP_MAJOR_COMPACT

public static final String HBASE_HSTORE_MIN_LOCALITY_TO_SKIP_MAJOR_COMPACT
See Also:
Constant Field Values

RATIO_KEY

public static final String RATIO_KEY
See Also:
Constant Field Values

MIN_KEY

public static final String MIN_KEY
See Also:
Constant Field Values

MAX_KEY

public static final String MAX_KEY
See Also:
Constant Field Values

DATE_TIERED_MAX_AGE_MILLIS_KEY

public static final String DATE_TIERED_MAX_AGE_MILLIS_KEY
See Also:
Constant Field Values

DATE_TIERED_INCOMING_WINDOW_MIN_KEY

public static final String DATE_TIERED_INCOMING_WINDOW_MIN_KEY
See Also:
Constant Field Values

COMPACTION_POLICY_CLASS_FOR_DATE_TIERED_WINDOWS_KEY

public static final String COMPACTION_POLICY_CLASS_FOR_DATE_TIERED_WINDOWS_KEY
See Also:
Constant Field Values

DATE_TIERED_SINGLE_OUTPUT_FOR_MINOR_COMPACTION_KEY

public static final String DATE_TIERED_SINGLE_OUTPUT_FOR_MINOR_COMPACTION_KEY
See Also:
Constant Field Values

DATE_TIERED_COMPACTION_WINDOW_FACTORY_CLASS_KEY

public static final String DATE_TIERED_COMPACTION_WINDOW_FACTORY_CLASS_KEY
See Also:
Constant Field Values
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getMinFilesToCompact

public int getMinFilesToCompact()
Returns:
upper bound on number of files to be included in minor compactions

setMinFilesToCompact

public void setMinFilesToCompact(int threshold)
Set upper bound on number of files to be included in minor compactions

Parameters:
threshold -

getDateTieredMaxStoreFileAgeMillis

public long getDateTieredMaxStoreFileAgeMillis()

getDateTieredIncomingWindowMin

public int getDateTieredIncomingWindowMin()

getCompactionPolicyForDateTieredWindow

public String getCompactionPolicyForDateTieredWindow()

useDateTieredSingleOutputForMinorCompaction

public boolean useDateTieredSingleOutputForMinorCompaction()

getDateTieredCompactionWindowFactory

public String getDateTieredCompactionWindowFactory()


Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.