@InterfaceAudience.LimitedPrivate(value="Configuration") public class FlushPolicyFactory extends java.lang.Object
The default flush policy is FlushLargeStoresPolicy. And for 0.98, the default flush
policy is FlushAllStoresPolicy.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HBASE_FLUSH_POLICY_KEY |
| Constructor and Description |
|---|
FlushPolicyFactory() |
| Modifier and Type | Method and Description |
|---|---|
static FlushPolicy |
create(HRegion region,
Configuration conf)
Create the FlushPolicy configured for the given table.
|
static java.lang.Class<? extends FlushPolicy> |
getFlushPolicyClass(HTableDescriptor htd,
Configuration conf)
Get FlushPolicy class for the given table.
|
public static final java.lang.String HBASE_FLUSH_POLICY_KEY
public static FlushPolicy create(HRegion region, Configuration conf) throws java.io.IOException
java.io.IOExceptionpublic static java.lang.Class<? extends FlushPolicy> getFlushPolicyClass(HTableDescriptor htd, Configuration conf) throws java.io.IOException
java.io.IOException