@InterfaceAudience.LimitedPrivate(value="Configuration") public class DefaultStoreEngine extends StoreEngine<DefaultStoreFlusher,RatioBasedCompactionPolicy,DefaultCompactor,org.apache.hadoop.hbase.regionserver.DefaultStoreFileManager>
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_COMPACTION_POLICY_CLASS_KEY |
static String |
DEFAULT_COMPACTOR_CLASS_KEY |
static String |
DEFAULT_STORE_FLUSHER_CLASS_KEY |
compactionPolicy, compactor, STORE_ENGINE_CLASS_KEY, storeFileManager, storeFlusher
Constructor and Description |
---|
DefaultStoreEngine() |
Modifier and Type | Method and Description |
---|---|
CompactionContext |
createCompaction()
Creates an instance of a compaction context specific to this engine.
|
protected void |
createCompactionPolicy(org.apache.hadoop.conf.Configuration conf,
HStore store) |
protected void |
createCompactor(org.apache.hadoop.conf.Configuration conf,
HStore store) |
protected void |
createComponents(org.apache.hadoop.conf.Configuration conf,
HStore store,
CellComparator kvComparator)
Create the StoreEngine's components.
|
protected void |
createStoreFlusher(org.apache.hadoop.conf.Configuration conf,
HStore store) |
boolean |
needsCompaction(List<HStoreFile> filesCompacting) |
create, getCompactionPolicy, getCompactor, getStoreFileManager, getStoreFlusher
public static final String DEFAULT_STORE_FLUSHER_CLASS_KEY
public static final String DEFAULT_COMPACTOR_CLASS_KEY
public static final String DEFAULT_COMPACTION_POLICY_CLASS_KEY
public boolean needsCompaction(List<HStoreFile> filesCompacting)
needsCompaction
in class StoreEngine<DefaultStoreFlusher,RatioBasedCompactionPolicy,DefaultCompactor,org.apache.hadoop.hbase.regionserver.DefaultStoreFileManager>
filesCompacting
- Files currently compactingprotected void createComponents(org.apache.hadoop.conf.Configuration conf, HStore store, CellComparator kvComparator) throws IOException
StoreEngine
createComponents
in class StoreEngine<DefaultStoreFlusher,RatioBasedCompactionPolicy,DefaultCompactor,org.apache.hadoop.hbase.regionserver.DefaultStoreFileManager>
IOException
protected void createCompactor(org.apache.hadoop.conf.Configuration conf, HStore store) throws IOException
IOException
protected void createCompactionPolicy(org.apache.hadoop.conf.Configuration conf, HStore store) throws IOException
IOException
protected void createStoreFlusher(org.apache.hadoop.conf.Configuration conf, HStore store) throws IOException
IOException
public CompactionContext createCompaction()
StoreEngine
createCompaction
in class StoreEngine<DefaultStoreFlusher,RatioBasedCompactionPolicy,DefaultCompactor,org.apache.hadoop.hbase.regionserver.DefaultStoreFileManager>
Copyright © 2007–2019 Cloudera. All rights reserved.