@InterfaceAudience.LimitedPrivate(value="Configuration") public abstract class RegionSplitPolicy extends Configured
Modifier and Type | Field and Description |
---|---|
protected HRegion |
region
The region configured for this split policy.
|
Constructor and Description |
---|
RegionSplitPolicy() |
Modifier and Type | Method and Description |
---|---|
protected void |
configureForRegion(HRegion region)
Upon construction, this method will be called with the region
to be governed.
|
static RegionSplitPolicy |
create(HRegion region,
Configuration conf)
Create the RegionSplitPolicy configured for the given table.
|
protected byte[] |
getSplitPoint() |
static Class<? extends RegionSplitPolicy> |
getSplitPolicyClass(HTableDescriptor htd,
Configuration conf) |
protected abstract boolean |
shouldSplit() |
protected boolean |
skipStoreFileRangeCheck()
Deprecated.
Use
skipStoreFileRangeCheck(String) } instead |
protected boolean |
skipStoreFileRangeCheck(String familyName)
See
skipStoreFileRangeCheck() javadoc. |
protected HRegion region
protected void configureForRegion(HRegion region)
protected abstract boolean shouldSplit()
protected byte[] getSplitPoint()
public static RegionSplitPolicy create(HRegion region, Configuration conf) throws IOException
region
- conf
- IOException
public static Class<? extends RegionSplitPolicy> getSplitPolicyClass(HTableDescriptor htd, Configuration conf) throws IOException
IOException
@Deprecated protected boolean skipStoreFileRangeCheck()
skipStoreFileRangeCheck(String)
} insteadHRegionFileSystem.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
-