Class FlushPolicy
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.regionserver.FlushPolicy
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
- Direct Known Subclasses:
FlushAllStoresPolicy
,FlushLargeStoresPolicy
A flush policy determines the stores that need to be flushed when flushing a region.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureForRegion
(HRegion region) Upon construction, this method will be called with the region to be governed.abstract Collection<HStore>
Returns the stores need to be flushed.Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
-
Field Details
-
region
The region configured for this flush policy.
-
-
Constructor Details
-
FlushPolicy
public FlushPolicy()
-
-
Method Details
-
configureForRegion
Upon construction, this method will be called with the region to be governed. It will be called once and only once. -
selectStoresToFlush
Returns the stores need to be flushed.
-