Class FlushPolicyFactory
java.lang.Object
org.apache.hadoop.hbase.regionserver.FlushPolicyFactory
The class that creates a flush policy from a conf and HTableDescriptor.
The default flush policy is FlushLargeStoresPolicy
. And for 0.98, the default flush
policy is FlushAllStoresPolicy
.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Class<? extends FlushPolicy>
static final String
private static final org.slf4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic FlushPolicy
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.
-
Field Details
-
LOG
-
HBASE_FLUSH_POLICY_KEY
- See Also:
-
DEFAULT_FLUSH_POLICY_CLASS
-
-
Constructor Details
-
FlushPolicyFactory
public FlushPolicyFactory()
-
-
Method Details
-
create
public static FlushPolicy create(HRegion region, org.apache.hadoop.conf.Configuration conf) throws IOException Create the FlushPolicy configured for the given table.- Throws:
IOException
-
getFlushPolicyClass
public static Class<? extends FlushPolicy> getFlushPolicyClass(TableDescriptor htd, org.apache.hadoop.conf.Configuration conf) throws IOException Get FlushPolicy class for the given table.- Throws:
IOException
-