@InterfaceAudience.LimitedPrivate(value="Configuration") public class DisabledRegionSplitPolicy extends RegionSplitPolicy
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.region
Constructor and Description |
---|
DisabledRegionSplitPolicy() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canSplit()
Returns
true if the specified region can be split. |
protected boolean |
shouldSplit()
Returns true if the specified region should be split.
|
configureForRegion, create, getSplitPoint, getSplitPolicyClass, skipStoreFileRangeCheck
public DisabledRegionSplitPolicy()
protected boolean shouldSplit()
RegionSplitPolicy
shouldSplit
in class RegionSplitPolicy
protected boolean canSplit()
RegionSplitPolicy
true
if the specified region can be split.canSplit
in class RegionSplitPolicy
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.