org.apache.hadoop.hbase.regionserver
Class IncreasingToUpperBoundRegionSplitPolicy
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.regionserver.RegionSplitPolicy
org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy
org.apache.hadoop.hbase.regionserver.IncreasingToUpperBoundRegionSplitPolicy
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable
- Direct Known Subclasses:
- DelimitedKeyPrefixRegionSplitPolicy, KeyPrefixRegionSplitPolicy
public class IncreasingToUpperBoundRegionSplitPolicy
- extends ConstantSizeRegionSplitPolicy
Split size is the number of regions that are on this server that all are
of the same table, squared, times the region flush size OR the maximum
region split size, whichever is smaller. For example, if the flush size
is 128M, then on first flush we will split which will make two regions
that will split when their size is 2 * 2 * 128M = 512M. If one of these
regions splits, then there are three regions and now the split size is
3 * 3 * 128M = 1152M, and so on until we reach the configured
maximum filesize and then from there on out, we'll use that.
Methods inherited from class org.apache.hadoop.conf.Configured |
getConf, setConf |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IncreasingToUpperBoundRegionSplitPolicy
public IncreasingToUpperBoundRegionSplitPolicy()
configureForRegion
protected void configureForRegion(HRegion region)
- Description copied from class:
RegionSplitPolicy
- Upon construction, this method will be called with the region
to be governed. It will be called once and only once.
- Overrides:
configureForRegion
in class ConstantSizeRegionSplitPolicy
shouldSplit
protected boolean shouldSplit()
- Overrides:
shouldSplit
in class ConstantSizeRegionSplitPolicy
- Returns:
- true if the specified region should be split.
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.