@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 | Method and Description |
---|---|
String |
getCompactionPolicyForDateTieredWindow() |
double |
getCompactionRatio() |
double |
getCompactionRatioOffPeak() |
String |
getDateTieredCompactionWindowFactory() |
int |
getDateTieredIncomingWindowMin() |
long |
getDateTieredMaxStoreFileAgeMillis() |
float |
getMajorCompactionJitter() |
long |
getMajorCompactionPeriod() |
long |
getMaxCompactSize() |
long |
getMaxCompactSize(boolean mayUseOffpeak) |
int |
getMaxFilesToCompact() |
long |
getMinCompactSize() |
int |
getMinFilesToCompact() |
float |
getMinLocalityToForceCompact() |
long |
getOffPeakMaxCompactSize() |
long |
getThrottlePoint() |
void |
setMinFilesToCompact(int threshold)
Set upper bound on number of files to be included in minor compactions
|
String |
toString() |
boolean |
useDateTieredSingleOutputForMinorCompaction() |
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_DISCHARGER_THREAD_COUNT
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 static final String HBASE_HFILE_COMPACTION_DISCHARGER_THREAD_COUNT
public static final String HBASE_HFILE_COMPACTION_DISCHARGER_INTERVAL
public static final String DATE_TIERED_MAX_AGE_MILLIS_KEY
public static final String DATE_TIERED_INCOMING_WINDOW_MIN_KEY
public static final String COMPACTION_POLICY_CLASS_FOR_DATE_TIERED_WINDOWS_KEY
public static final String DATE_TIERED_SINGLE_OUTPUT_FOR_MINOR_COMPACTION_KEY
public static final String DATE_TIERED_COMPACTION_WINDOW_FACTORY_CLASS_KEY
public long getMinCompactSize()
public long getMaxCompactSize()
public int getMinFilesToCompact()
public void setMinFilesToCompact(int threshold)
threshold
- value to set topublic 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)
public long getDateTieredMaxStoreFileAgeMillis()
public int getDateTieredIncomingWindowMin()
public String getCompactionPolicyForDateTieredWindow()
public boolean useDateTieredSingleOutputForMinorCompaction()
public String getDateTieredCompactionWindowFactory()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.