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
@Deprecated
@Private
public class KeyPrefixRegionSplitPolicy
extends IncreasingToUpperBoundRegionSplitPolicy
Deprecated.
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.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
Deprecated.static final String
Deprecated.static final String
Deprecated.private int
Deprecated.Fields inherited from class org.apache.hadoop.hbase.regionserver.IncreasingToUpperBoundRegionSplitPolicy
initialSize
Fields inherited from class org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy
overallHRegionFiles
Fields inherited from class org.apache.hadoop.hbase.regionserver.RegionSplitPolicy
region
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureForRegion
(HRegion region) Deprecated.Upon construction, this method will be called with the region to be governed.protected byte[]
Deprecated.toString()
Deprecated.Methods inherited from class org.apache.hadoop.hbase.regionserver.IncreasingToUpperBoundRegionSplitPolicy
getSizeToCheck, shouldSplit
Methods inherited from class org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy
getDesiredMaxFileSize, isExceedSize, positiveJitterRate
Methods inherited from class org.apache.hadoop.hbase.regionserver.RegionSplitPolicy
canSplit, create, getSplitPolicyClass, skipStoreFileRangeCheck
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
-
Field Details
-
LOG
Deprecated. -
PREFIX_LENGTH_KEY_DEPRECATED
Deprecated.- See Also:
-
PREFIX_LENGTH_KEY
Deprecated.- See Also:
-
prefixLength
Deprecated.
-
-
Constructor Details
-
KeyPrefixRegionSplitPolicy
public KeyPrefixRegionSplitPolicy()Deprecated.
-
-
Method Details
-
toString
Deprecated.- Overrides:
toString
in classIncreasingToUpperBoundRegionSplitPolicy
-
configureForRegion
Deprecated.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 classIncreasingToUpperBoundRegionSplitPolicy
-
getSplitPoint
Deprecated.- Overrides:
getSplitPoint
in classRegionSplitPolicy
- 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.
-
RegionSplitRestriction
, instead.