@InterfaceAudience.LimitedPrivate(value="Configuration") public class DefaultStoreEngine extends StoreEngine<DefaultStoreFlusher,RatioBasedCompactionPolicy,DefaultCompactor,DefaultStoreFileManager>
| Modifier and Type | Class and Description | 
|---|---|
| private class  | DefaultStoreEngine.DefaultCompactionContext | 
| Modifier and Type | Field and Description | 
|---|---|
| private static Class<? extends RatioBasedCompactionPolicy> | DEFAULT_COMPACTION_POLICY_CLASS | 
| static String | DEFAULT_COMPACTION_POLICY_CLASS_KEY | 
| private static Class<? extends DefaultCompactor> | DEFAULT_COMPACTOR_CLASS | 
| static String | DEFAULT_COMPACTOR_CLASS_KEY | 
| private static Class<? extends DefaultStoreFlusher> | DEFAULT_STORE_FLUSHER_CLASS | 
| 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, getStoreFlusherpublic 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
private static final Class<? extends DefaultStoreFlusher> DEFAULT_STORE_FLUSHER_CLASS
private static final Class<? extends DefaultCompactor> DEFAULT_COMPACTOR_CLASS
private static final Class<? extends RatioBasedCompactionPolicy> DEFAULT_COMPACTION_POLICY_CLASS
public DefaultStoreEngine()
public boolean needsCompaction(List<HStoreFile> filesCompacting)
needsCompaction in class StoreEngine<DefaultStoreFlusher,RatioBasedCompactionPolicy,DefaultCompactor,DefaultStoreFileManager>filesCompacting - Files currently compactingprotected void createComponents(org.apache.hadoop.conf.Configuration conf, HStore store, CellComparator kvComparator) throws IOException
StoreEnginecreateComponents in class StoreEngine<DefaultStoreFlusher,RatioBasedCompactionPolicy,DefaultCompactor,DefaultStoreFileManager>IOExceptionprotected void createCompactor(org.apache.hadoop.conf.Configuration conf, HStore store) throws IOException
IOExceptionprotected void createCompactionPolicy(org.apache.hadoop.conf.Configuration conf, HStore store) throws IOException
IOExceptionprotected void createStoreFlusher(org.apache.hadoop.conf.Configuration conf, HStore store) throws IOException
IOExceptionpublic CompactionContext createCompaction()
StoreEnginecreateCompaction in class StoreEngine<DefaultStoreFlusher,RatioBasedCompactionPolicy,DefaultCompactor,DefaultStoreFileManager>Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.