@InterfaceAudience.Private public class LogRecoveredEditsOutputSink extends OutputSink
OutputSink.WriterThreadblacklistedRegions, closeAndCleanCompleted, controller, entryBuffers, numThreads, regionMaximumEditLogSeqNum, reporter, skippedEdits, splits, writers, writersClosed, writerThreads| Constructor and Description |
|---|
LogRecoveredEditsOutputSink(WALSplitter walSplitter,
WALSplitter.PipelineController controller,
EntryBuffers entryBuffers,
int numWriters) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(WALSplitter.RegionEntryBuffer buffer) |
List<org.apache.hadoop.fs.Path> |
finishWritingAndClose() |
int |
getNumberOfRecoveredRegions() |
Map<byte[],Long> |
getOutputCounts() |
boolean |
keepRegionEvent(WAL.Entry entry)
Some WALEdit's contain only KV's for account on what happened to a region.
|
finishWriting, flush, restartWriterThreadsIfNeeded, startWriterThreadspublic LogRecoveredEditsOutputSink(WALSplitter walSplitter, WALSplitter.PipelineController controller, EntryBuffers entryBuffers, int numWriters)
public List<org.apache.hadoop.fs.Path> finishWritingAndClose() throws IOException
finishWritingAndClose in class OutputSinkIOExceptionpublic void append(WALSplitter.RegionEntryBuffer buffer) throws IOException
append in class OutputSinkbuffer - A WAL Edit EntryIOExceptionpublic boolean keepRegionEvent(WAL.Entry entry)
OutputSinkkeepRegionEvent in class OutputSinkpublic Map<byte[],Long> getOutputCounts()
getOutputCounts in class OutputSinkpublic int getNumberOfRecoveredRegions()
getNumberOfRecoveredRegions in class OutputSinkCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.