@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.
| 限定符和类型 | 字段和说明 |
|---|---|
protected long |
initialSize |
region| 构造器和说明 |
|---|
IncreasingToUpperBoundRegionSplitPolicy() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
configureForRegion(HRegion region)
Upon construction, this method will be called with the region
to be governed.
|
protected long |
getSizeToCheck(int tableRegionsCount) |
protected boolean |
shouldSplit() |
positiveJitterRatecreate, getSplitPoint, getSplitPolicyClass, skipStoreFileRangeCheckprotected void configureForRegion(HRegion region)
RegionSplitPolicyprotected boolean shouldSplit()
shouldSplit 在类中 ConstantSizeRegionSplitPolicyprotected 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–2019 The Apache Software Foundation. All rights reserved.