@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_MIN
region
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()
Returns the stores need to be flushed.
|
setFlushSizeLowerBounds, shouldFlush, toString
private Collection<HStore> regularStores
private Collection<HStore> sloppyStores
public FlushNonSloppyStoresFirstPolicy()
public Collection<HStore> selectStoresToFlush()
selectStoresToFlush
in class FlushPolicy
protected void configureForRegion(HRegion region)
FlushPolicy
configureForRegion
in class FlushPolicy
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.