|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.regionserver.StripeStoreFlusher
@InterfaceAudience.Private public class StripeStoreFlusher
Stripe implementation of StoreFlusher. Flushes files either into L0 file w/o metadata, or into separate striped files, avoiding L0.
| Nested Class Summary | |
|---|---|
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. |
| Field Summary | |
|---|---|
protected org.apache.hadoop.conf.Configuration |
conf
|
protected Store |
store
|
| Constructor Summary | |
|---|---|
StripeStoreFlusher(org.apache.hadoop.conf.Configuration conf,
Store store,
StripeCompactionPolicy policy,
StripeStoreFileManager stripes)
|
|
| Method Summary | |
|---|---|
protected InternalScanner |
createScanner(SortedSet<KeyValue> snapshot,
long smallestReadPoint)
Creates the scanner for flushing snapshot. |
protected void |
finalizeWriter(StoreFile.Writer writer,
long cacheFlushSeqNum,
MonitoredTask status)
|
List<org.apache.hadoop.fs.Path> |
flushSnapshot(SortedSet<KeyValue> snapshot,
long cacheFlushSeqNum,
TimeRangeTracker tracker,
AtomicLong flushedSize,
MonitoredTask status)
Turns a snapshot of memstore into a set of store files. |
protected long |
performFlush(InternalScanner scanner,
Compactor.CellSink sink,
long smallestReadPoint)
Performs memstore flush, writing data from scanner into sink. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.apache.hadoop.conf.Configuration conf
protected Store store
| Constructor Detail |
|---|
public StripeStoreFlusher(org.apache.hadoop.conf.Configuration conf,
Store store,
StripeCompactionPolicy policy,
StripeStoreFileManager stripes)
| Method Detail |
|---|
public List<org.apache.hadoop.fs.Path> flushSnapshot(SortedSet<KeyValue> snapshot,
long cacheFlushSeqNum,
TimeRangeTracker tracker,
AtomicLong flushedSize,
MonitoredTask status)
throws IOException
snapshot - Memstore snapshot.cacheFlushSeqNum - Log cache flush sequence number.tracker - Time range tracker from the memstore
pertaining to the snapshot.flushedSize - Out parameter for the size of the KVs flushed.status - Task that represents the flush operation and may be updated with status.
IOException
protected void finalizeWriter(StoreFile.Writer writer,
long cacheFlushSeqNum,
MonitoredTask status)
throws IOException
IOException
protected InternalScanner createScanner(SortedSet<KeyValue> snapshot,
long smallestReadPoint)
throws IOException
IOException
protected long 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||