Class DateTieredStoreEngine
java.lang.Object
org.apache.hadoop.hbase.regionserver.StoreEngine<DefaultStoreFlusher,DateTieredCompactionPolicy,DateTieredCompactor,DefaultStoreFileManager>
org.apache.hadoop.hbase.regionserver.DateTieredStoreEngine
@Private
public class DateTieredStoreEngine
extends StoreEngine<DefaultStoreFlusher,DateTieredCompactionPolicy,DateTieredCompactor,DefaultStoreFileManager>
HBASE-15400 This store engine allows us to store data in date tiered layout with exponential
sizing so that the more recent data has more granularity. Time-range scan will perform the best
with most recent data. When data reach maxAge, they are compacted in fixed-size time windows for
TTL and archiving. Please refer to design spec for more details.
https://docs.google.com/document/d/1_AmlNb2N8Us1xICsTeGDLKIqL6T-oHoRLZ323MG_uy8/edit#heading=h.uk6y5pd3oqgx
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate final class
-
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 kvComparator) 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
-
Constructor Details
-
DateTieredStoreEngine
public DateTieredStoreEngine()
-
-
Method Details
-
needsCompaction
- Specified by:
needsCompaction
in classStoreEngine<DefaultStoreFlusher,
DateTieredCompactionPolicy, DateTieredCompactor, DefaultStoreFileManager> - 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<DefaultStoreFlusher,
DateTieredCompactionPolicy, DateTieredCompactor, DefaultStoreFileManager> - Returns:
- New CompactionContext object.
- Throws:
IOException
-
createComponents
protected void createComponents(org.apache.hadoop.conf.Configuration conf, HStore store, CellComparator kvComparator) throws IOException Description copied from class:StoreEngine
Create the StoreEngine's components.- Specified by:
createComponents
in classStoreEngine<DefaultStoreFlusher,
DateTieredCompactionPolicy, DateTieredCompactor, DefaultStoreFileManager> - Throws:
IOException
-