@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 Random |
RANDOM |
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() |
boolean |
positiveJitterRate() |
protected boolean |
shouldSplit() |
create, getSplitPoint, getSplitPolicyClass, skipStoreFileRangeCheck
private long desiredMaxFileSize
private double jitterRate
public ConstantSizeRegionSplitPolicy()
protected void configureForRegion(HRegion region)
RegionSplitPolicy
configureForRegion
in class RegionSplitPolicy
protected boolean shouldSplit()
shouldSplit
in class RegionSplitPolicy
long getDesiredMaxFileSize()
public boolean positiveJitterRate()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.