@InterfaceAudience.Private public class BoundedRecoveredHFilesOutputSink extends OutputSink
HFiles. Runs with a
bounded number of HFile writers at any one time rather than let the count run up.OutputSink.WriterThreadcloseCompletionService, closeThreadPool, entryBuffers, numThreads, reporter, splits, status, totalSkippedEdits| Constructor and Description |
|---|
BoundedRecoveredHFilesOutputSink(WALSplitter walSplitter,
WALSplitter.PipelineController controller,
EntryBuffers entryBuffers,
int numWriters) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(EntryBuffers.RegionEntryBuffer buffer) |
List<org.apache.hadoop.fs.Path> |
close() |
int |
getNumberOfRecoveredRegions()
Returns number of regions we've recovered
|
int |
getNumOpenWriters()
Returns the number of currently opened writers
|
Map<String,Long> |
getOutputCounts()
Returns a map from encoded region ID to the number of edits written out for that region.
|
boolean |
keepRegionEvent(WAL.Entry entry)
Some WALEdit's contain only KV's for account on what happened to a region.
|
finishWriterThreads, restartWriterThreadsIfNeeded, startWriterThreads, updateStatusWithMsgpublic BoundedRecoveredHFilesOutputSink(WALSplitter walSplitter, WALSplitter.PipelineController controller, EntryBuffers entryBuffers, int numWriters)
public void append(EntryBuffers.RegionEntryBuffer buffer) throws IOException
append in class OutputSinkbuffer - A buffer of some number of edits for a given region.IOException - For any IO errorspublic List<org.apache.hadoop.fs.Path> close() throws IOException
close in class OutputSinkIOExceptionpublic Map<String,Long> getOutputCounts()
OutputSinkgetOutputCounts in class OutputSinkpublic int getNumberOfRecoveredRegions()
OutputSinkgetNumberOfRecoveredRegions in class OutputSinkpublic int getNumOpenWriters()
OutputSinkgetNumOpenWriters in class OutputSinkpublic boolean keepRegionEvent(WAL.Entry entry)
OutputSinkkeepRegionEvent in class OutputSinkCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.