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
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.protected booleanshouldFlush(HStore store) Methods inherited from class org.apache.hadoop.hbase.regionserver.FlushLargeStoresPolicy
setFlushSizeLowerBounds, toStringMethods 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:FlushPolicyUpon construction, this method will be called with the region to be governed. It will be called once and only once.- Overrides:
configureForRegionin classFlushPolicy
-
selectStoresToFlush
Description copied from class:FlushPolicyReturns the stores need to be flushed.- Specified by:
selectStoresToFlushin classFlushPolicy
-
shouldFlush
- Overrides:
shouldFlushin classFlushLargeStoresPolicy
-