Class StripeStoreEngine
java.lang.Object
org.apache.hadoop.hbase.regionserver.StoreEngine<StripeStoreFlusher,StripeCompactionPolicy,StripeCompactor,StripeStoreFileManager>
org.apache.hadoop.hbase.regionserver.StripeStoreEngine
@LimitedPrivate("Configuration")
public class StripeStoreEngine
extends StoreEngine<StripeStoreFlusher,StripeCompactionPolicy,StripeCompactor,StripeStoreFileManager>
The storage engine that implements the stripe-based store/compaction scheme.
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate class
Represents one instance of stripe compaction, with the necessary context and flow. -
Field Summary
Fields inherited from class org.apache.hadoop.hbase.regionserver.StoreEngine
compactionPolicy, compactor, STORE_ENGINE_CLASS_KEY, storeFileManager, storeFlusher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates an instance of a compaction context specific to this engine.protected void
createComponents
(org.apache.hadoop.conf.Configuration conf, HStore store, CellComparator comparator) Create the StoreEngine's components.boolean
needsCompaction
(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
-
LOG
-
config
-
-
Constructor Details
-
StripeStoreEngine
public StripeStoreEngine()
-
-
Method Details
-
needsCompaction
- Specified by:
needsCompaction
in classStoreEngine<StripeStoreFlusher,
StripeCompactionPolicy, StripeCompactor, StripeStoreFileManager> - Parameters:
filesCompacting
- Files currently compacting- Returns:
- whether a compaction selection is possible
-
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 classStoreEngine<StripeStoreFlusher,
StripeCompactionPolicy, StripeCompactor, StripeStoreFileManager> - Returns:
- New CompactionContext object.
-
createComponents
protected void createComponents(org.apache.hadoop.conf.Configuration conf, HStore store, CellComparator comparator) throws IOException Description copied from class:StoreEngine
Create the StoreEngine's components.- Specified by:
createComponents
in classStoreEngine<StripeStoreFlusher,
StripeCompactionPolicy, StripeCompactor, StripeStoreFileManager> - Throws:
IOException
-