@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.| Modifier and Type | Field and Description |
|---|---|
private Collection<HStore> |
regularStores |
private Collection<HStore> |
sloppyStores |
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, shouldFlushprivate Collection<HStore> regularStores
private Collection<HStore> sloppyStores
public FlushNonSloppyStoresFirstPolicy()
public Collection<HStore> selectStoresToFlush()
selectStoresToFlush in class FlushPolicyprotected void configureForRegion(HRegion region)
FlushPolicyconfigureForRegion in class FlushPolicyCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.