@InterfaceAudience.Private public class StripeStoreFlusher extends java.lang.Object
| 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 |
|---|---|
protected Configuration |
conf |
protected Store |
store |
| Constructor and Description |
|---|
StripeStoreFlusher(Configuration conf,
Store store,
StripeCompactionPolicy policy,
StripeStoreFileManager stripes) |
| 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) |
java.util.List<Path> |
flushSnapshot(MemStoreSnapshot snapshot,
long cacheFlushSeqNum,
MonitoredTask status)
Turns a snapshot of memstore into a set of store files.
|
protected void |
performFlush(InternalScanner scanner,
Compactor.CellSink sink,
long smallestReadPoint)
Performs memstore flush, writing data from scanner into sink.
|
protected Configuration conf
protected Store store
public StripeStoreFlusher(Configuration conf,
Store store,
StripeCompactionPolicy policy,
StripeStoreFileManager stripes)
public java.util.List<Path> flushSnapshot(MemStoreSnapshot snapshot, long cacheFlushSeqNum, MonitoredTask status) throws java.io.IOException
snapshot - Memstore snapshot.cacheFlushSeqNum - Log cache flush sequence number.status - Task that represents the flush operation and may be updated with status.java.io.IOExceptionprotected void finalizeWriter(StoreFile.Writer writer, long cacheFlushSeqNum, MonitoredTask status) throws java.io.IOException
java.io.IOExceptionprotected InternalScanner createScanner(KeyValueScanner snapshotScanner, long smallestReadPoint) throws java.io.IOException
snapshotScanner - smallestReadPoint - java.io.IOExceptionprotected void performFlush(InternalScanner scanner, Compactor.CellSink sink, long smallestReadPoint) throws java.io.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.java.io.IOException