Class FlushNonSloppyStoresFirstPolicy
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.regionserver.FlushPolicy
org.apache.hadoop.hbase.regionserver.FlushLargeStoresPolicy
org.apache.hadoop.hbase.regionserver.FlushNonSloppyStoresFirstPolicy
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
@LimitedPrivate("Configuration")
public class FlushNonSloppyStoresFirstPolicy
extends FlushLargeStoresPolicy
A
FlushPolicy that only flushes store larger than a given threshold. If no store is large
enough, then all stores will be flushed. Gives priority to selecting regular stores first, and
only if no other option, selects sloppy stores which normaly require more memory.-
Field Summary
FieldsFields inherited from class org.apache.hadoop.hbase.regionserver.FlushLargeStoresPolicy
DEFAULT_HREGION_COLUMNFAMILY_FLUSH_SIZE_LOWER_BOUND_MIN, flushSizeLowerBound, HREGION_COLUMNFAMILY_FLUSH_SIZE_LOWER_BOUND, HREGION_COLUMNFAMILY_FLUSH_SIZE_LOWER_BOUND_MINFields inherited from class org.apache.hadoop.hbase.regionserver.FlushPolicy
region -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureForRegion(HRegion region) Upon construction, this method will be called with the region to be governed.Returns the stores need to be flushed.Methods inherited from class org.apache.hadoop.hbase.regionserver.FlushLargeStoresPolicy
setFlushSizeLowerBounds, shouldFlush, toStringMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
-
Field Details
-
regularStores
-
sloppyStores
-
-
Constructor Details
-
FlushNonSloppyStoresFirstPolicy
public FlushNonSloppyStoresFirstPolicy()
-
-
Method Details
-
selectStoresToFlush
Returns the stores need to be flushed.- Specified by:
selectStoresToFlushin classFlushPolicy
-
configureForRegion
Description copied from class:FlushPolicyUpon construction, this method will be called with the region to be governed. It will be called once and only once.- Overrides:
configureForRegionin classFlushPolicy
-