|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.regionserver.RegionSplitPolicy
@InterfaceAudience.LimitedPrivate(value="Configuration") public abstract class RegionSplitPolicy
A split policy determines when a region should be split.
Default split policy since
0.94.0
,
Default split policy before 0.94.0
Field Summary | |
---|---|
protected HRegion |
region
The region configured for this split policy. |
Constructor Summary | |
---|---|
RegionSplitPolicy()
|
Method Summary | |
---|---|
protected void |
configureForRegion(HRegion region)
Upon construction, this method will be called with the region to be governed. |
static RegionSplitPolicy |
create(HRegion region,
org.apache.hadoop.conf.Configuration conf)
Create the RegionSplitPolicy configured for the given table. |
protected byte[] |
getSplitPoint()
|
static Class<? extends RegionSplitPolicy> |
getSplitPolicyClass(HTableDescriptor htd,
org.apache.hadoop.conf.Configuration conf)
|
protected abstract boolean |
shouldSplit()
|
protected boolean |
skipStoreFileRangeCheck()
Deprecated. Use skipStoreFileRangeCheck(String) } instead |
protected boolean |
skipStoreFileRangeCheck(String familyName)
See skipStoreFileRangeCheck() javadoc. |
Methods inherited from class org.apache.hadoop.conf.Configured |
---|
getConf, setConf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected HRegion region
Constructor Detail |
---|
public RegionSplitPolicy()
Method Detail |
---|
protected void configureForRegion(HRegion region)
protected abstract boolean shouldSplit()
protected byte[] getSplitPoint()
public static RegionSplitPolicy create(HRegion region, org.apache.hadoop.conf.Configuration conf) throws IOException
region
- conf
-
IOException
public static Class<? extends RegionSplitPolicy> getSplitPolicyClass(HTableDescriptor htd, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
@Deprecated protected boolean skipStoreFileRangeCheck()
skipStoreFileRangeCheck(String)
} instead
HRegionFileSystem.splitStoreFile(org.apache.hadoop.hbase.HRegionInfo, String,
StoreFile, byte[], boolean, RegionSplitPolicy)
we are not creating the split reference
if split row not lies in the StoreFile range. But in some use cases we may need to create
the split reference even when the split row not lies in the range. This method can be used
to decide, whether to skip the the StoreFile range check or not.
protected boolean skipStoreFileRangeCheck(String familyName)
skipStoreFileRangeCheck()
javadoc.
familyName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |