public static class TestDefaultStoreEngine.DummyStoreFlusher extends DefaultStoreFlusher
| Modifier and Type | Field and Description |
|---|---|
protected Configuration |
conf |
protected Store |
store |
| Constructor and Description |
|---|
DummyStoreFlusher(Configuration conf,
Store store) |
| Modifier and Type | Method and Description |
|---|---|
protected InternalScanner |
createScanner(KeyValueScanner snapshotScanner,
long smallestReadPoint)
Creates the scanner for flushing snapshot.
|
protected void |
finalizeWriter(StoreFile.Writer writer,
long cacheFlushSeqNum,
MonitoredTask status) |
protected void |
performFlush(InternalScanner scanner,
Compactor.CellSink sink,
long smallestReadPoint)
Performs memstore flush, writing data from scanner into sink.
|
flushSnapshotprotected Configuration conf
protected Store store
public DummyStoreFlusher(Configuration conf,
Store store)
protected void finalizeWriter(StoreFile.Writer writer, long cacheFlushSeqNum, MonitoredTask status) throws IOException
IOExceptionprotected InternalScanner createScanner(KeyValueScanner snapshotScanner, long smallestReadPoint) throws IOException
snapshotScanner - smallestReadPoint - IOExceptionprotected void performFlush(InternalScanner scanner, Compactor.CellSink sink, long smallestReadPoint) 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.IOException