@InterfaceAudience.Private public class DefaultMobStoreFlusher extends DefaultStoreFlusher
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
protected HStore |
store |
| Constructor and Description |
|---|
DefaultMobStoreFlusher(org.apache.hadoop.conf.Configuration conf,
HStore store) |
| Modifier and Type | Method and Description |
|---|---|
protected InternalScanner |
createScanner(List<KeyValueScanner> snapshotScanners,
FlushLifeCycleTracker tracker)
Creates the scanner for flushing snapshot.
|
protected StoreFileWriter |
createWriter(MemStoreSnapshot snapshot,
boolean alwaysIncludesTag,
Consumer<org.apache.hadoop.fs.Path> writerCreationTracker) |
protected void |
finalizeWriter(StoreFileWriter writer,
long cacheFlushSeqNum,
MonitoredTask status) |
List<org.apache.hadoop.fs.Path> |
flushSnapshot(MemStoreSnapshot snapshot,
long cacheFlushId,
MonitoredTask status,
ThroughputController throughputController,
FlushLifeCycleTracker tracker,
Consumer<org.apache.hadoop.fs.Path> writerCreationTracker)
Flushes the snapshot of the MemStore.
|
protected void |
performFlush(InternalScanner scanner,
CellSink sink,
ThroughputController throughputController)
Performs memstore flush, writing data from scanner into sink.
|
protected void |
performMobFlush(MemStoreSnapshot snapshot,
long cacheFlushId,
InternalScanner scanner,
StoreFileWriter writer,
MonitoredTask status,
ThroughputController throughputController,
Consumer<org.apache.hadoop.fs.Path> writerCreationTracker)
Flushes the cells in the mob store.
|
protected org.apache.hadoop.conf.Configuration conf
protected HStore store
public DefaultMobStoreFlusher(org.apache.hadoop.conf.Configuration conf,
HStore store)
throws IOException
IOExceptionpublic List<org.apache.hadoop.fs.Path> flushSnapshot(MemStoreSnapshot snapshot, long cacheFlushId, MonitoredTask status, ThroughputController throughputController, FlushLifeCycleTracker tracker, Consumer<org.apache.hadoop.fs.Path> writerCreationTracker) throws IOException
flushSnapshot in class DefaultStoreFlushersnapshot - Memstore snapshot.cacheFlushId - 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 performMobFlush(MemStoreSnapshot snapshot, long cacheFlushId, InternalScanner scanner, StoreFileWriter writer, MonitoredTask status, ThroughputController throughputController, Consumer<org.apache.hadoop.fs.Path> writerCreationTracker) throws IOException
snapshot - Memstore snapshot.cacheFlushId - Log cache flush sequence number.scanner - The scanner of memstore snapshot.writer - The store file writer.status - Task that represents the flush operation and may be updated with
status.throughputController - A controller to avoid flush too fast.IOExceptionprotected void finalizeWriter(StoreFileWriter writer, long cacheFlushSeqNum, MonitoredTask status) throws IOException
IOExceptionprotected final StoreFileWriter createWriter(MemStoreSnapshot snapshot, boolean alwaysIncludesTag, Consumer<org.apache.hadoop.fs.Path> writerCreationTracker) throws IOException
IOExceptionprotected final InternalScanner createScanner(List<KeyValueScanner> snapshotScanners, FlushLifeCycleTracker tracker) throws IOException
IOExceptionprotected void performFlush(InternalScanner scanner, CellSink sink, ThroughputController throughputController) throws IOException
scanner - Scanner to get data from.sink - Sink to write data to. Could be StoreFile.Writer.throughputController - A controller to avoid flush too fastIOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.