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
Nested ClassesModifier and TypeClassDescriptionstatic classStripe flush request wrapper based on boundaries.static classStripe flush request wrapper based on size.static classStripe flush request wrapper that writes a non-striped file. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Objectprivate static final org.slf4j.Loggerprivate final StripeCompactionPolicyprivate final StripeCompactionPolicy.StripeInformationProviderFields inherited from class org.apache.hadoop.hbase.regionserver.StoreFlusher
conf, store -
Constructor Summary
ConstructorsConstructorDescriptionStripeStoreFlusher(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:StoreFlusherTurns a snapshot of memstore into a set of store files.- Specified by:
flushSnapshotin 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)
-