@InterfaceAudience.Private public class StripeStoreFlusher extends StoreFlusher
Modifier and Type | Class and Description |
---|---|
static class |
StripeStoreFlusher.BoundaryStripeFlushRequest
Stripe flush request wrapper based on boundaries.
|
static class |
StripeStoreFlusher.SizeStripeFlushRequest
Stripe flush request wrapper based on size.
|
static class |
StripeStoreFlusher.StripeFlushRequest
Stripe flush request wrapper that writes a non-striped file.
|
Modifier and Type | Field and Description |
---|---|
private Object |
flushLock |
private static org.slf4j.Logger |
LOG |
private StripeCompactionPolicy |
policy |
private StripeCompactionPolicy.StripeInformationProvider |
stripes |
conf, store
Constructor and Description |
---|
StripeStoreFlusher(org.apache.hadoop.conf.Configuration conf,
HStore store,
StripeCompactionPolicy policy,
StripeStoreFileManager stripes) |
Modifier and Type | Method and Description |
---|---|
private AbstractMultiFileWriter.WriterFactory |
createWriterFactory(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.
|
createScanner, createWriter, finalizeWriter, performFlush
private static final org.slf4j.Logger LOG
private final StripeCompactionPolicy policy
private final StripeCompactionPolicy.StripeInformationProvider stripes
public StripeStoreFlusher(org.apache.hadoop.conf.Configuration conf, HStore store, StripeCompactionPolicy policy, StripeStoreFileManager stripes)
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
StoreFlusher
flushSnapshot
in class StoreFlusher
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 fastIOException
private AbstractMultiFileWriter.WriterFactory createWriterFactory(MemStoreSnapshot snapshot, Consumer<org.apache.hadoop.fs.Path> writerCreationTracker)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.