Class StripeStoreFlusher
java.lang.Object
org.apache.hadoop.hbase.regionserver.StoreFlusher
org.apache.hadoop.hbase.regionserver.StripeStoreFlusher
Stripe implementation of StoreFlusher. Flushes files either into L0 file w/o metadata, or into
separate striped files, avoiding L0.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Stripe flush request wrapper based on boundaries.static class
Stripe flush request wrapper based on size.static class
Stripe flush request wrapper that writes a non-striped file. -
Field Summary
Modifier and TypeFieldDescriptionprivate final Object
private static final org.slf4j.Logger
private final StripeCompactionPolicy
private final StripeCompactionPolicy.StripeInformationProvider
Fields inherited from class org.apache.hadoop.hbase.regionserver.StoreFlusher
conf, store
-
Constructor Summary
ConstructorDescriptionStripeStoreFlusher
(org.apache.hadoop.conf.Configuration conf, HStore store, StripeCompactionPolicy policy, StripeStoreFileManager stripes) -
Method Summary
Modifier and TypeMethodDescriptioncreateWriterFactory
(MemStoreSnapshot snapshot, Consumer<org.apache.hadoop.fs.Path> writerCreationTracker) List<org.apache.hadoop.fs.Path>
flushSnapshot
(MemStoreSnapshot snapshot, long cacheFlushSeqNum, MonitoredTask status, ThroughputController throughputController, FlushLifeCycleTracker tracker, Consumer<org.apache.hadoop.fs.Path> writerCreationTracker) Turns a snapshot of memstore into a set of store files.Methods inherited from class org.apache.hadoop.hbase.regionserver.StoreFlusher
createScanner, createWriter, finalizeWriter, performFlush
-
Field Details
-
LOG
-
flushLock
-
policy
-
stripes
-
-
Constructor Details
-
StripeStoreFlusher
public StripeStoreFlusher(org.apache.hadoop.conf.Configuration conf, HStore store, StripeCompactionPolicy policy, StripeStoreFileManager stripes)
-
-
Method Details
-
flushSnapshot
public List<org.apache.hadoop.fs.Path> flushSnapshot(MemStoreSnapshot snapshot, long cacheFlushSeqNum, MonitoredTask status, ThroughputController throughputController, FlushLifeCycleTracker tracker, Consumer<org.apache.hadoop.fs.Path> writerCreationTracker) throws IOException Description copied from class:StoreFlusher
Turns a snapshot of memstore into a set of store files.- Specified by:
flushSnapshot
in classStoreFlusher
- Parameters:
snapshot
- Memstore snapshot.cacheFlushSeqNum
- Log cache flush sequence number.status
- Task that represents the flush operation and may be updated with status.throughputController
- A controller to avoid flush too fast- Returns:
- List of files written. Can be empty; must not be null.
- Throws:
IOException
-
createWriterFactory
private AbstractMultiFileWriter.WriterFactory createWriterFactory(MemStoreSnapshot snapshot, Consumer<org.apache.hadoop.fs.Path> writerCreationTracker)
-