@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>"Constructor and Description |
---|
CompactionConfiguration(org.apache.hadoop.conf.Configuration conf,
StoreConfigInformation storeConfigInfo) |
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() |
private static final org.apache.commons.logging.Log LOG
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
org.apache.hadoop.conf.Configuration conf
StoreConfigInformation storeConfigInfo
private final double offPeakCompactionRatio
private final long maxCompactSize
private final long offPeakMaxCompactSize
private final long minCompactSize
private final int minFilesToCompact
private final int maxFilesToCompact
private final double compactionRatio
private final long throttlePoint
private final long majorCompactionPeriod
private final float majorCompactionJitter
private final float minLocalityToForceCompact
CompactionConfiguration(org.apache.hadoop.conf.Configuration conf, StoreConfigInformation storeConfigInfo)
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–2019 The Apache Software Foundation. All rights reserved.