@InterfaceAudience.LimitedPrivate(value="Configuration") public class DefaultStoreEngine extends StoreEngine<DefaultStoreFlusher,RatioBasedCompactionPolicy,DefaultCompactor,DefaultStoreFileManager>
Modifier and Type | Class and Description |
---|---|
private class |
DefaultStoreEngine.DefaultCompactionContext |
StoreEngine.IOExceptionRunnable
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) |
addStoreFiles, commitStoreFiles, create, createComponentsOnce, createStoreFileAndReader, createStoreFileAndReader, createWriter, getBloomFilterMetrics, getCompactionPolicy, getCompactor, getLock, getStoreFileManager, getStoreFlusher, initialize, readLock, readUnlock, refreshStoreFiles, refreshStoreFiles, removeCompactedFiles, replaceStoreFiles, requireWritingToTmpDirFirst, validateStoreFile, writeLock, writeUnlock
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
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
StoreEngine
createComponents
in class StoreEngine<DefaultStoreFlusher,RatioBasedCompactionPolicy,DefaultCompactor,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,DefaultStoreFileManager>
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.