@InterfaceAudience.Private public class StripeStoreFlusher extends Object
| 限定符和类型 | 类和说明 |
|---|---|
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.
|
| 构造器和说明 |
|---|
StripeStoreFlusher(org.apache.hadoop.conf.Configuration conf,
HStore store,
StripeCompactionPolicy policy,
StripeStoreFileManager stripes) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected InternalScanner |
createScanner(List<KeyValueScanner> snapshotScanners,
long smallestReadPoint,
FlushLifeCycleTracker tracker)
Creates the scanner for flushing snapshot.
|
protected void |
finalizeWriter(StoreFileWriter writer,
long cacheFlushSeqNum,
MonitoredTask status) |
List<org.apache.hadoop.fs.Path> |
flushSnapshot(MemStoreSnapshot snapshot,
long cacheFlushSeqNum,
MonitoredTask status,
ThroughputController throughputController,
FlushLifeCycleTracker tracker)
Turns a snapshot of memstore into a set of store files.
|
protected void |
performFlush(InternalScanner scanner,
CellSink sink,
long smallestReadPoint,
ThroughputController throughputController)
Performs memstore flush, writing data from scanner into sink.
|
protected org.apache.hadoop.conf.Configuration conf
protected HStore store
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) throws IOException
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 fastIOExceptionprotected void finalizeWriter(StoreFileWriter writer, long cacheFlushSeqNum, MonitoredTask status) throws IOException
IOExceptionprotected final InternalScanner createScanner(List<KeyValueScanner> snapshotScanners, long smallestReadPoint, FlushLifeCycleTracker tracker) throws IOException
snapshotScanners - smallestReadPoint - IOExceptionprotected void performFlush(InternalScanner scanner, CellSink sink, long smallestReadPoint, ThroughputController throughputController) throws IOException
scanner - Scanner to get data from.sink - Sink to write data to. Could be StoreFile.Writer.smallestReadPoint - Smallest read point used for the flush.throughputController - A controller to avoid flush too fastIOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.