org.apache.hadoop.hbase.regionserver
Class DefaultStoreEngine

java.lang.Object
  extended by org.apache.hadoop.hbase.regionserver.StoreEngine<DefaultStoreFlusher,RatioBasedCompactionPolicy,DefaultCompactor,org.apache.hadoop.hbase.regionserver.DefaultStoreFileManager>
      extended by org.apache.hadoop.hbase.regionserver.DefaultStoreEngine

@InterfaceAudience.LimitedPrivate(value="Configuration")
public class DefaultStoreEngine
extends StoreEngine<DefaultStoreFlusher,RatioBasedCompactionPolicy,DefaultCompactor,org.apache.hadoop.hbase.regionserver.DefaultStoreFileManager>

Default StoreEngine creates the default compactor, policy, and store file manager, or their derivatives.


Field Summary
static String DEFAULT_COMPACTION_POLICY_CLASS_KEY
           
static String DEFAULT_COMPACTOR_CLASS_KEY
           
static String DEFAULT_STORE_FLUSHER_CLASS_KEY
           
 
Fields inherited from class org.apache.hadoop.hbase.regionserver.StoreEngine
compactionPolicy, compactor, STORE_ENGINE_CLASS_KEY, storeFileManager, storeFlusher
 
Constructor Summary
DefaultStoreEngine()
           
 
Method Summary
 CompactionContext createCompaction()
          Creates an instance of a compaction context specific to this engine.
protected  void createComponents(org.apache.hadoop.conf.Configuration conf, Store store, KeyValue.KVComparator kvComparator)
          Create the StoreEngine's components.
 boolean needsCompaction(List<StoreFile> filesCompacting)
           
 
Methods inherited from class org.apache.hadoop.hbase.regionserver.StoreEngine
create, getCompactionPolicy, getCompactor, getStoreFileManager, getStoreFlusher
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_STORE_FLUSHER_CLASS_KEY

public static final String DEFAULT_STORE_FLUSHER_CLASS_KEY
See Also:
Constant Field Values

DEFAULT_COMPACTOR_CLASS_KEY

public static final String DEFAULT_COMPACTOR_CLASS_KEY
See Also:
Constant Field Values

DEFAULT_COMPACTION_POLICY_CLASS_KEY

public static final String DEFAULT_COMPACTION_POLICY_CLASS_KEY
See Also:
Constant Field Values
Constructor Detail

DefaultStoreEngine

public DefaultStoreEngine()
Method Detail

needsCompaction

public boolean needsCompaction(List<StoreFile> filesCompacting)
Specified by:
needsCompaction in class StoreEngine<DefaultStoreFlusher,RatioBasedCompactionPolicy,DefaultCompactor,org.apache.hadoop.hbase.regionserver.DefaultStoreFileManager>
Parameters:
filesCompacting - Files currently compacting
Returns:
whether a compaction selection is possible

createComponents

protected void createComponents(org.apache.hadoop.conf.Configuration conf,
                                Store store,
                                KeyValue.KVComparator kvComparator)
                         throws IOException
Description copied from class: StoreEngine
Create the StoreEngine's components.

Specified by:
createComponents in class StoreEngine<DefaultStoreFlusher,RatioBasedCompactionPolicy,DefaultCompactor,org.apache.hadoop.hbase.regionserver.DefaultStoreFileManager>
Throws:
IOException

createCompaction

public CompactionContext createCompaction()
Description copied from class: StoreEngine
Creates an instance of a compaction context specific to this engine. Doesn't actually select or start a compaction. See CompactionContext class comment.

Specified by:
createCompaction in class StoreEngine<DefaultStoreFlusher,RatioBasedCompactionPolicy,DefaultCompactor,org.apache.hadoop.hbase.regionserver.DefaultStoreFileManager>
Returns:
New CompactionContext object.


Copyright © 2015 The Apache Software Foundation. All rights reserved.