Class DelimitedKeyPrefixRegionSplitPolicy
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.DelimitedKeyPrefixRegionSplitPolicy
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
@Deprecated
@Private
public class DelimitedKeyPrefixRegionSplitPolicy
extends IncreasingToUpperBoundRegionSplitPolicy
Deprecated.
A custom RegionSplitPolicy implementing a SplitPolicy that groups rows by a prefix of the row-key
with a delimiter. Only the first delimiter for the row key will define the prefix of the row key
that is used for grouping. 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. As an example, if you have row keys
delimited with
_, like userid_eventtype_eventid, and use prefix
delimiter _, this split policy ensures that all rows starting with the same userid, belongs to
the same region.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]Deprecated.static final StringDeprecated.private static final org.slf4j.LoggerDeprecated.Fields inherited from class org.apache.hadoop.hbase.regionserver.IncreasingToUpperBoundRegionSplitPolicy
initialSizeFields inherited from class org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy
overallHRegionFilesFields inherited from class org.apache.hadoop.hbase.regionserver.RegionSplitPolicy
region -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureForRegion(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, shouldSplitMethods inherited from class org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy
getDesiredMaxFileSize, isExceedSize, positiveJitterRateMethods inherited from class org.apache.hadoop.hbase.regionserver.RegionSplitPolicy
canSplit, create, getSplitPolicyClass, skipStoreFileRangeCheckMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
-
Field Details
-
LOG
Deprecated. -
DELIMITER_KEY
Deprecated.- See Also:
-
delimiter
Deprecated.
-
-
Constructor Details
-
DelimitedKeyPrefixRegionSplitPolicy
public DelimitedKeyPrefixRegionSplitPolicy()Deprecated.
-
-
Method Details
-
toString
Deprecated.- Overrides:
toStringin classIncreasingToUpperBoundRegionSplitPolicy
-
configureForRegion
Deprecated.Description copied from class:RegionSplitPolicyUpon construction, this method will be called with the region to be governed. It will be called once and only once.- Overrides:
configureForRegionin classIncreasingToUpperBoundRegionSplitPolicy
-
getSplitPoint
Deprecated.- Overrides:
getSplitPointin 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.