@InterfaceAudience.Private public class DefaultMobStoreFlusher extends DefaultStoreFlusher
Modifier and Type | Field and Description |
---|---|
private Object |
flushLock |
private static org.slf4j.Logger |
LOG |
private long |
mobCellValueSizeThreshold |
(package private) static ThreadLocal<Set<String>> |
mobRefSet |
private HMobStore |
mobStore |
private org.apache.hadoop.fs.Path |
targetPath |
conf, store
Constructor and Description |
---|
DefaultMobStoreFlusher(org.apache.hadoop.conf.Configuration conf,
HStore store) |
Modifier and Type | Method and Description |
---|---|
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.
|
private String |
getStoreInfo() |
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.
|
createScanner, createWriter, performFlush
private static final org.slf4j.Logger LOG
private long mobCellValueSizeThreshold
private org.apache.hadoop.fs.Path targetPath
static ThreadLocal<Set<String>> mobRefSet
public DefaultMobStoreFlusher(org.apache.hadoop.conf.Configuration conf, HStore store) throws IOException
IOException
public 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 DefaultStoreFlusher
snapshot
- 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 fastIOException
protected 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. nIOException
protected void finalizeWriter(StoreFileWriter writer, long cacheFlushSeqNum, MonitoredTask status) throws IOException
finalizeWriter
in class StoreFlusher
IOException
private String getStoreInfo()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.