Class FlushAllLargeStoresPolicy
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.FlushAllLargeStoresPolicy
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
@LimitedPrivate("Configuration")
public class FlushAllLargeStoresPolicy
extends FlushLargeStoresPolicy
A
FlushPolicy
that only flushes store larger a given threshold. If no store is large
enough, then all stores will be flushed.-
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.protected boolean
shouldFlush
(HStore store) Methods inherited from class org.apache.hadoop.hbase.regionserver.FlushLargeStoresPolicy
setFlushSizeLowerBounds, toString
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
-
Field Details
-
LOG
-
-
Constructor Details
-
FlushAllLargeStoresPolicy
public FlushAllLargeStoresPolicy()
-
-
Method Details
-
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
-
selectStoresToFlush
Description copied from class:FlushPolicy
Returns the stores need to be flushed.- Specified by:
selectStoresToFlush
in classFlushPolicy
-
shouldFlush
- Overrides:
shouldFlush
in classFlushLargeStoresPolicy
-