@InterfaceAudience.LimitedPrivate(value="Configuration") public class FlushPolicyFactory extends Object
The default flush policy is FlushLargeStoresPolicy
. And for 0.98, the default flush
policy is FlushAllStoresPolicy
.
Modifier and Type | Field and Description |
---|---|
private static Class<? extends FlushPolicy> |
DEFAULT_FLUSH_POLICY_CLASS |
static String |
HBASE_FLUSH_POLICY_KEY |
private static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
FlushPolicyFactory() |
Modifier and Type | Method and Description |
---|---|
static FlushPolicy |
create(HRegion region,
org.apache.hadoop.conf.Configuration conf)
Create the FlushPolicy configured for the given table.
|
static Class<? extends FlushPolicy> |
getFlushPolicyClass(TableDescriptor htd,
org.apache.hadoop.conf.Configuration conf)
Get FlushPolicy class for the given table.
|
private static final org.slf4j.Logger LOG
public static final String HBASE_FLUSH_POLICY_KEY
private static final Class<? extends FlushPolicy> DEFAULT_FLUSH_POLICY_CLASS
public FlushPolicyFactory()
public static FlushPolicy create(HRegion region, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
public static Class<? extends FlushPolicy> getFlushPolicyClass(TableDescriptor htd, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.