org.apache.hadoop.hbase.regionserver
Class StripeStoreEngine

java.lang.Object
  extended by org.apache.hadoop.hbase.regionserver.StoreEngine<StripeStoreFlusher,StripeCompactionPolicy,StripeCompactor,StripeStoreFileManager>
      extended by org.apache.hadoop.hbase.regionserver.StripeStoreEngine

@InterfaceAudience.LimitedPrivate(value="Configuration")
public class StripeStoreEngine
extends StoreEngine<StripeStoreFlusher,StripeCompactionPolicy,StripeCompactor,StripeStoreFileManager>

The storage engine that implements the stripe-based store/compaction scheme.


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.regionserver.StoreEngine
compactionPolicy, compactor, STORE_ENGINE_CLASS_KEY, storeFileManager, storeFlusher
 
Constructor Summary
StripeStoreEngine()
           
 
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 comparator)
          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
 

Constructor Detail

StripeStoreEngine

public StripeStoreEngine()
Method Detail

needsCompaction

public boolean needsCompaction(List<StoreFile> filesCompacting)
Specified by:
needsCompaction in class StoreEngine<StripeStoreFlusher,StripeCompactionPolicy,StripeCompactor,StripeStoreFileManager>
Parameters:
filesCompacting - Files currently compacting
Returns:
whether a compaction selection is possible

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<StripeStoreFlusher,StripeCompactionPolicy,StripeCompactor,StripeStoreFileManager>
Returns:
New CompactionContext object.

createComponents

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

Specified by:
createComponents in class StoreEngine<StripeStoreFlusher,StripeCompactionPolicy,StripeCompactor,StripeStoreFileManager>
Throws:
IOException


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