@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 minLocalityToForceCompact - Locality threshold for a store file to major compact (HBASE-11195)
Set parameter as "hbase.hstore.compaction.<attribute>"Modifier and Type | Field and Description |
---|---|
static String |
HBASE_HSTORE_COMPACTION_MAX_KEY |
static String |
HBASE_HSTORE_COMPACTION_MAX_SIZE_KEY |
static String |
HBASE_HSTORE_COMPACTION_MAX_SIZE_OFFPEAK_KEY |
static String |
HBASE_HSTORE_COMPACTION_MIN_KEY |
static String |
HBASE_HSTORE_COMPACTION_MIN_SIZE_KEY |
static String |
HBASE_HSTORE_COMPACTION_RATIO_KEY |
static String |
HBASE_HSTORE_COMPACTION_RATIO_OFFPEAK_KEY |
static String |
HBASE_HSTORE_MIN_LOCALITY_TO_SKIP_MAJOR_COMPACT |
static String |
HBASE_HSTORE_OFFPEAK_END_HOUR |
static String |
HBASE_HSTORE_OFFPEAK_START_HOUR |
Modifier and Type | Method and Description |
---|---|
double |
getCompactionRatio() |
double |
getCompactionRatioOffPeak() |
float |
getMajorCompactionJitter() |
long |
getMajorCompactionPeriod() |
long |
getMaxCompactSize() |
long |
getMaxCompactSize(boolean mayUseOffpeak) |
int |
getMaxFilesToCompact() |
long |
getMinCompactSize() |
int |
getMinFilesToCompact() |
float |
getMinLocalityToForceCompact() |
long |
getOffPeakMaxCompactSize() |
long |
getThrottlePoint() |
String |
toString() |
public static final String HBASE_HSTORE_COMPACTION_RATIO_KEY
public static final String HBASE_HSTORE_COMPACTION_RATIO_OFFPEAK_KEY
public static final String HBASE_HSTORE_COMPACTION_MIN_KEY
public static final String HBASE_HSTORE_COMPACTION_MIN_SIZE_KEY
public static final String HBASE_HSTORE_COMPACTION_MAX_KEY
public static final String HBASE_HSTORE_COMPACTION_MAX_SIZE_KEY
public static final String HBASE_HSTORE_COMPACTION_MAX_SIZE_OFFPEAK_KEY
public static final String HBASE_HSTORE_OFFPEAK_END_HOUR
public static final String HBASE_HSTORE_OFFPEAK_START_HOUR
public static final String HBASE_HSTORE_MIN_LOCALITY_TO_SKIP_MAJOR_COMPACT
public long getMinCompactSize()
public long getMaxCompactSize()
public int getMinFilesToCompact()
public int getMaxFilesToCompact()
public double getCompactionRatio()
public double getCompactionRatioOffPeak()
public long getThrottlePoint()
public long getMajorCompactionPeriod()
public float getMajorCompactionJitter()
public float getMinLocalityToForceCompact()
public long getOffPeakMaxCompactSize()
public long getMaxCompactSize(boolean mayUseOffpeak)
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.