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 BASE_WINDOW_MILLIS_KEY
           
static String COMPACTION_POLICY_CLASS_FOR_TIERED_WINDOWS_KEY
           
static String HBASE_HSTORE_MIN_LOCALITY_TO_SKIP_MAJOR_COMPACT
           
static String INCOMING_WINDOW_MIN_KEY
           
static String MAX_AGE_KEY
           
static String MAX_KEY
           
static String MIN_KEY
           
static String RATIO_KEY
           
static String WINDOWS_PER_TIER_KEY
           
 
Method Summary
 long getBaseWindowMillis()
           
 String getCompactionPolicyForTieredWindow()
           
 int getIncomingWindowMin()
           
 long getMaxStoreFileAgeMillis()
           
 int getMinFilesToCompact()
           
 int getWindowsPerTier()
           
 void setMinFilesToCompact(int threshold)
          Set upper bound on number of files to be included in minor compactions
 String toString()
           
 
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

MAX_AGE_KEY

public static final String MAX_AGE_KEY
See Also:
Constant Field Values

BASE_WINDOW_MILLIS_KEY

public static final String BASE_WINDOW_MILLIS_KEY
See Also:
Constant Field Values

WINDOWS_PER_TIER_KEY

public static final String WINDOWS_PER_TIER_KEY
See Also:
Constant Field Values

INCOMING_WINDOW_MIN_KEY

public static final String INCOMING_WINDOW_MIN_KEY
See Also:
Constant Field Values

COMPACTION_POLICY_CLASS_FOR_TIERED_WINDOWS_KEY

public static final String COMPACTION_POLICY_CLASS_FOR_TIERED_WINDOWS_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 -

getMaxStoreFileAgeMillis

public long getMaxStoreFileAgeMillis()

getBaseWindowMillis

public long getBaseWindowMillis()

getWindowsPerTier

public int getWindowsPerTier()

getIncomingWindowMin

public int getIncomingWindowMin()

getCompactionPolicyForTieredWindow

public String getCompactionPolicyForTieredWindow()


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