Class DefaultStoreEngine
java.lang.Object
org.apache.hadoop.hbase.regionserver.StoreEngine<DefaultStoreFlusher,RatioBasedCompactionPolicy,DefaultCompactor,DefaultStoreFileManager>
org.apache.hadoop.hbase.regionserver.DefaultStoreEngine
- Direct Known Subclasses:
MobStoreEngine
@LimitedPrivate("Configuration")
public class DefaultStoreEngine
extends StoreEngine<DefaultStoreFlusher,RatioBasedCompactionPolicy,DefaultCompactor,DefaultStoreFileManager>
Default StoreEngine creates the default compactor, policy, and store file manager, or their
derivatives.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.hadoop.hbase.regionserver.StoreEngine
StoreEngine.IOExceptionRunnable -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Class<? extends RatioBasedCompactionPolicy>static final Stringprivate static final Class<? extends DefaultCompactor>static final Stringprivate static final Class<? extends DefaultStoreFlusher>static final StringFields inherited from class org.apache.hadoop.hbase.regionserver.StoreEngine
compactionPolicy, compactor, STORE_ENGINE_CLASS_KEY, storeFileManager, storeFlusher -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates an instance of a compaction context specific to this engine.protected voidcreateCompactionPolicy(org.apache.hadoop.conf.Configuration conf, HStore store) protected voidcreateCompactor(org.apache.hadoop.conf.Configuration conf, HStore store) protected voidcreateComponents(org.apache.hadoop.conf.Configuration conf, HStore store, CellComparator kvComparator) Create the StoreEngine's components.protected voidcreateStoreFlusher(org.apache.hadoop.conf.Configuration conf, HStore store) booleanneedsCompaction(List<HStoreFile> filesCompacting) Methods inherited from class org.apache.hadoop.hbase.regionserver.StoreEngine
addStoreFiles, commitStoreFiles, create, createComponentsOnce, createStoreFileAndReader, createStoreFileAndReader, createWriter, getBloomFilterMetrics, getCompactionPolicy, getCompactor, getLock, getStoreFileManager, getStoreFlusher, initialize, readLock, readUnlock, refreshStoreFiles, refreshStoreFiles, removeCompactedFiles, replaceStoreFiles, requireWritingToTmpDirFirst, validateStoreFile, writeLock, writeUnlock
-
Field Details
-
DEFAULT_STORE_FLUSHER_CLASS_KEY
- See Also:
-
DEFAULT_COMPACTOR_CLASS_KEY
- See Also:
-
DEFAULT_COMPACTION_POLICY_CLASS_KEY
- See Also:
-
DEFAULT_STORE_FLUSHER_CLASS
-
DEFAULT_COMPACTOR_CLASS
-
DEFAULT_COMPACTION_POLICY_CLASS
-
-
Constructor Details
-
DefaultStoreEngine
public DefaultStoreEngine()
-
-
Method Details
-
needsCompaction
- Specified by:
needsCompactionin classStoreEngine<DefaultStoreFlusher,RatioBasedCompactionPolicy, DefaultCompactor, DefaultStoreFileManager> - Parameters:
filesCompacting- Files currently compacting- Returns:
- whether a compaction selection is possible
-
createComponents
protected void createComponents(org.apache.hadoop.conf.Configuration conf, HStore store, CellComparator kvComparator) throws IOException Description copied from class:StoreEngineCreate the StoreEngine's components.- Specified by:
createComponentsin classStoreEngine<DefaultStoreFlusher,RatioBasedCompactionPolicy, DefaultCompactor, DefaultStoreFileManager> - Throws:
IOException
-
createCompactor
protected void createCompactor(org.apache.hadoop.conf.Configuration conf, HStore store) throws IOException - Throws:
IOException
-
createCompactionPolicy
protected void createCompactionPolicy(org.apache.hadoop.conf.Configuration conf, HStore store) throws IOException - Throws:
IOException
-
createStoreFlusher
protected void createStoreFlusher(org.apache.hadoop.conf.Configuration conf, HStore store) throws IOException - Throws:
IOException
-
createCompaction
Description copied from class:StoreEngineCreates an instance of a compaction context specific to this engine. Doesn't actually select or start a compaction. See CompactionContext class comment.- Specified by:
createCompactionin classStoreEngine<DefaultStoreFlusher,RatioBasedCompactionPolicy, DefaultCompactor, DefaultStoreFileManager> - Returns:
- New CompactionContext object.
-