Class ConstantSizeRegionSplitPolicy
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.regionserver.RegionSplitPolicy
org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
- Direct Known Subclasses:
IncreasingToUpperBoundRegionSplitPolicy
@LimitedPrivate("Configuration")
public class ConstantSizeRegionSplitPolicy
extends RegionSplitPolicy
A
RegionSplitPolicy
implementation which splits a region as soon as any of its store
files exceeds a maximum configurable size.
This is the default split policy. From 0.94.0 on the default split policy has changed to
IncreasingToUpperBoundRegionSplitPolicy
-
Field Summary
Modifier and TypeFieldDescriptionprivate long
private double
private static final org.slf4j.Logger
protected boolean
Fields inherited from class org.apache.hadoop.hbase.regionserver.RegionSplitPolicy
region
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureForRegion
(HRegion region) Upon construction, this method will be called with the region to be governed.(package private) long
protected final boolean
isExceedSize
(long sizeToCheck) Returns true if region size exceed the sizeToCheckboolean
protected boolean
Returns true if the specified region should be split.toString()
Methods inherited from class org.apache.hadoop.hbase.regionserver.RegionSplitPolicy
canSplit, create, getSplitPoint, getSplitPolicyClass, skipStoreFileRangeCheck
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
-
Field Details
-
LOG
-
desiredMaxFileSize
-
jitterRate
-
overallHRegionFiles
-
-
Constructor Details
-
ConstantSizeRegionSplitPolicy
public ConstantSizeRegionSplitPolicy()
-
-
Method Details
-
toString
-
configureForRegion
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 classRegionSplitPolicy
-
shouldSplit
Description copied from class:RegionSplitPolicy
Returns true if the specified region should be split.- Specified by:
shouldSplit
in classRegionSplitPolicy
-
getDesiredMaxFileSize
long getDesiredMaxFileSize() -
positiveJitterRate
-
isExceedSize
Returns true if region size exceed the sizeToCheck
-