@InterfaceAudience.LimitedPrivate(value="Configuration") public class FlushNonSloppyStoresFirstPolicy extends FlushLargeStoresPolicy
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.DEFAULT_HREGION_COLUMNFAMILY_FLUSH_SIZE_LOWER_BOUND_MIN, flushSizeLowerBound, HREGION_COLUMNFAMILY_FLUSH_SIZE_LOWER_BOUND, HREGION_COLUMNFAMILY_FLUSH_SIZE_LOWER_BOUND_MINregion| Constructor and Description |
|---|
FlushNonSloppyStoresFirstPolicy() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureForRegion(HRegion region)
Upon construction, this method will be called with the region to be governed.
|
Collection<HStore> |
selectStoresToFlush() |
setFlushSizeLowerBounds, shouldFlushpublic Collection<HStore> selectStoresToFlush()
selectStoresToFlush in class FlushPolicyprotected void configureForRegion(HRegion region)
FlushPolicyconfigureForRegion in class FlushPolicyCopyright © 2007–2019 Cloudera. All rights reserved.