@InterfaceAudience.Private public class IncreasingToUpperBoundRegionSplitPolicy extends ConstantSizeRegionSplitPolicy
For example, if the flush size is 128MB, then after two flushes (256MB) we will split which will
make two regions that will split when their size is 2^3 * 128MB*2 = 2048MB.
If one of these regions splits, then there are three regions and now the split size is
3^3 * 128MB*2 = 6912MB, and so on until we reach the configured maximum file size and
then from there on out, we'll use that.
| Modifier and Type | Field and Description |
|---|---|
protected long |
initialSize |
private static org.slf4j.Logger |
LOG |
overallHRegionFilesregion| Constructor and Description |
|---|
IncreasingToUpperBoundRegionSplitPolicy() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureForRegion(HRegion region)
Upon construction, this method will be called with the region to be governed.
|
private int |
getCountOfCommonTableRegions()
Returns Count of regions on this server that share the table this.region belongs to
|
protected long |
getSizeToCheck(int tableRegionsCount) |
protected boolean |
shouldSplit()
Returns true if the specified region should be split.
|
String |
toString() |
getDesiredMaxFileSize, isExceedSize, positiveJitterRatecanSplit, create, getSplitPoint, getSplitPolicyClass, skipStoreFileRangeCheckprivate static final org.slf4j.Logger LOG
protected long initialSize
public IncreasingToUpperBoundRegionSplitPolicy()
public String toString()
toString in class ConstantSizeRegionSplitPolicyprotected void configureForRegion(HRegion region)
RegionSplitPolicyconfigureForRegion in class ConstantSizeRegionSplitPolicyprotected boolean shouldSplit()
RegionSplitPolicyshouldSplit in class ConstantSizeRegionSplitPolicyprivate int getCountOfCommonTableRegions()
protected long getSizeToCheck(int tableRegionsCount)
count of regions cubed * 2 * flushsize, which ever is
smaller; guard against there being zero regions on this server.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.