Class DisabledRegionSplitPolicy
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.regionserver.RegionSplitPolicy
org.apache.hadoop.hbase.regionserver.DisabledRegionSplitPolicy
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
A
RegionSplitPolicy
that disables region splits. This should be used with care, since it
will disable automatic sharding. Most of the time, using ConstantSizeRegionSplitPolicy
with a large region size (10GB, etc) is safer.-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.regionserver.RegionSplitPolicy
region
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canSplit()
Returnstrue
if the specified region can be split.protected boolean
Returns true if the specified region should be split.Methods inherited from class org.apache.hadoop.hbase.regionserver.RegionSplitPolicy
configureForRegion, create, getSplitPoint, getSplitPolicyClass, skipStoreFileRangeCheck
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
-
Constructor Details
-
DisabledRegionSplitPolicy
public DisabledRegionSplitPolicy()
-
-
Method Details
-
shouldSplit
Description copied from class:RegionSplitPolicy
Returns true if the specified region should be split.- Specified by:
shouldSplit
in classRegionSplitPolicy
-
canSplit
Description copied from class:RegionSplitPolicy
Returnstrue
if the specified region can be split.- Overrides:
canSplit
in classRegionSplitPolicy
-