@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 |
---|---|
String |
getColdWindowStoragePolicy() |
String |
getCompactionPolicyForDateTieredWindow() |
double |
getCompactionRatio()
Returns Ratio used for compaction
|
double |
getCompactionRatioOffPeak()
Returns Off peak Ratio used for compaction
|
String |
getDateTieredCompactionWindowFactory() |
int |
getDateTieredIncomingWindowMin() |
long |
getDateTieredMaxStoreFileAgeMillis() |
long |
getHotWindowAgeMillis() |
String |
getHotWindowStoragePolicy() |
float |
getMajorCompactionJitter() |
long |
getMajorCompactionPeriod() |
long |
getMaxCompactSize()
Returns upper bound on file size to be included in minor compactions
|
long |
getMaxCompactSize(boolean mayUseOffpeak) |
int |
getMaxFilesToCompact()
Returns upper bound on number of files to be included in minor compactions
|
long |
getMinCompactSize()
Returns lower bound below which compaction is selected without ratio test
|
int |
getMinFilesToCompact()
Returns upper bound on number of files to be included in minor compactions
|
float |
getMinLocalityToForceCompact() |
long |
getOffPeakMaxCompactSize() |
long |
getThrottlePoint()
Returns ThrottlePoint used for classifying small and large compactions
|
long |
getWarmWindowAgeMillis() |
String |
getWarmWindowStoragePolicy() |
boolean |
isDateTieredStoragePolicyEnable() |
void |
setMinFilesToCompact(int threshold)
Set upper bound on number of files to be included in minor compactions
|
String |
toString() |
boolean |
useDateTieredSingleOutputForMinorCompaction() |
private static final org.slf4j.Logger 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
public static final String HBASE_HFILE_COMPACTION_DISCHARGER_THREAD_COUNT
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
private static final Class<? extends RatioBasedCompactionPolicy> DEFAULT_COMPACTION_POLICY_CLASS_FOR_DATE_TIERED_WINDOWS
public static final String DATE_TIERED_COMPACTION_WINDOW_FACTORY_CLASS_KEY
private static final Class<? extends CompactionWindowFactory> DEFAULT_DATE_TIERED_COMPACTION_WINDOW_FACTORY_CLASS
public static final String DATE_TIERED_STORAGE_POLICY_ENABLE_KEY
public static final String DATE_TIERED_HOT_WINDOW_AGE_MILLIS_KEY
public static final String DATE_TIERED_HOT_WINDOW_STORAGE_POLICY_KEY
public static final String DATE_TIERED_WARM_WINDOW_AGE_MILLIS_KEY
public static final String DATE_TIERED_WARM_WINDOW_STORAGE_POLICY_KEY
public static final String DATE_TIERED_COLD_WINDOW_STORAGE_POLICY_KEY
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 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
private final long dateTieredMaxStoreFileAgeMillis
private final int dateTieredIncomingWindowMin
private final String compactionPolicyForDateTieredWindow
private final boolean dateTieredSingleOutputForMinorCompaction
private final String dateTieredCompactionWindowFactory
private final boolean dateTieredStoragePolicyEnable
private long hotWindowAgeMillis
private long warmWindowAgeMillis
private String hotWindowStoragePolicy
private String warmWindowStoragePolicy
private String coldWindowStoragePolicy
CompactionConfiguration(org.apache.hadoop.conf.Configuration conf, StoreConfigInformation storeConfigInfo)
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()
public boolean isDateTieredStoragePolicyEnable()
public long getHotWindowAgeMillis()
public long getWarmWindowAgeMillis()
public String getHotWindowStoragePolicy()
public String getWarmWindowStoragePolicy()
public String getColdWindowStoragePolicy()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.