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
Fields 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_MIN
Fields inherited from class org.apache.hadoop.hbase.regionserver.FlushPolicy
region
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureForRegion
(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, toString
Methods 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:
selectStoresToFlush
in classFlushPolicy
-
configureForRegion
Description copied from class:FlushPolicy
Upon construction, this method will be called with the region to be governed. It will be called once and only once.- Overrides:
configureForRegion
in classFlushPolicy
-