@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 |
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() |
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
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
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()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.