@InterfaceAudience.LimitedPrivate(value="Configuration") public class ConstantSizeRegionSplitPolicy extends RegionSplitPolicy
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
Modifier and Type | Field and Description |
---|---|
private long |
desiredMaxFileSize |
private double |
jitterRate |
private static org.slf4j.Logger |
LOG |
protected boolean |
overallHRegionFiles |
region
Constructor and Description |
---|
ConstantSizeRegionSplitPolicy() |
Modifier and Type | Method and Description |
---|---|
protected void |
configureForRegion(HRegion region)
Upon construction, this method will be called with the region to be governed.
|
(package private) long |
getDesiredMaxFileSize() |
protected boolean |
isExceedSize(long sizeToCheck)
Returns true if region size exceed the sizeToCheck
|
boolean |
positiveJitterRate() |
protected boolean |
shouldSplit()
Returns true if the specified region should be split.
|
String |
toString() |
canSplit, create, getSplitPoint, getSplitPolicyClass, skipStoreFileRangeCheck
private static final org.slf4j.Logger LOG
private long desiredMaxFileSize
private double jitterRate
protected boolean overallHRegionFiles
public ConstantSizeRegionSplitPolicy()
protected void configureForRegion(HRegion region)
RegionSplitPolicy
configureForRegion
in class RegionSplitPolicy
protected boolean shouldSplit()
RegionSplitPolicy
shouldSplit
in class RegionSplitPolicy
long getDesiredMaxFileSize()
@InterfaceAudience.Private public boolean positiveJitterRate()
protected final boolean isExceedSize(long sizeToCheck)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.