org.apache.hadoop.hbase.regionserver
Class KeyPrefixRegionSplitPolicy
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
org.apache.hadoop.hbase.regionserver.KeyPrefixRegionSplitPolicy
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable
@InterfaceAudience.Private
public class KeyPrefixRegionSplitPolicy
- extends IncreasingToUpperBoundRegionSplitPolicy
A custom RegionSplitPolicy implementing a SplitPolicy that groups
rows by a prefix of the row-key
This ensures that a region is not split "inside" a prefix of a row key.
I.e. rows can be co-located in a region by their prefix.
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 |
PREFIX_LENGTH_KEY_DEPRECATED
@Deprecated
public static final String PREFIX_LENGTH_KEY_DEPRECATED
- Deprecated.
- See Also:
- Constant Field Values
PREFIX_LENGTH_KEY
public static final String PREFIX_LENGTH_KEY
- See Also:
- Constant Field Values
KeyPrefixRegionSplitPolicy
public KeyPrefixRegionSplitPolicy()
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 IncreasingToUpperBoundRegionSplitPolicy
getSplitPoint
protected byte[] getSplitPoint()
- Overrides:
getSplitPoint
in class RegionSplitPolicy
- Returns:
- the key at which the region should be split, or null
if it cannot be split. This will only be called if shouldSplit
previously returned true.
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.