org.apache.hadoop.hbase.regionserver
Class ConstantSizeRegionSplitPolicy

java.lang.Object
  extended by org.apache.hadoop.conf.Configured
      extended by org.apache.hadoop.hbase.regionserver.RegionSplitPolicy
          extended by org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
Direct Known Subclasses:
IncreasingToUpperBoundRegionSplitPolicy

public class ConstantSizeRegionSplitPolicy
extends RegionSplitPolicy

A 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


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.regionserver.RegionSplitPolicy
region
 
Constructor Summary
ConstantSizeRegionSplitPolicy()
           
 
Method Summary
protected  void configureForRegion(HRegion region)
          Upon construction, this method will be called with the region to be governed.
protected  boolean shouldSplit()
           
 
Methods inherited from class org.apache.hadoop.hbase.regionserver.RegionSplitPolicy
create, getSplitPoint
 
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
 

Constructor Detail

ConstantSizeRegionSplitPolicy

public ConstantSizeRegionSplitPolicy()
Method Detail

configureForRegion

protected void configureForRegion(HRegion region)
Description copied from class: RegionSplitPolicy
Upon construction, this method will be called with the region to be governed. It will be called once and only once.

Overrides:
configureForRegion in class RegionSplitPolicy

shouldSplit

protected boolean shouldSplit()
Specified by:
shouldSplit in class RegionSplitPolicy
Returns:
true if the specified region should be split.


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.