org.apache.hadoop.hbase.regionserver.compactions
Class CompactionConfiguration
java.lang.Object
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."
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
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
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.