@InterfaceAudience.Private public class BoundedLogWriterCreationOutputSink extends LogRecoveredEditsOutputSink
OutputSink.WriterThreadblacklistedRegions, closeAndCleanCompleted, controller, entryBuffers, numThreads, regionMaximumEditLogSeqNum, reporter, skippedEdits, splits, writers, writersClosed, writerThreads| 构造器和说明 |
|---|
BoundedLogWriterCreationOutputSink(WALSplitter walSplitter,
WALSplitter.PipelineController controller,
EntryBuffers entryBuffers,
int numWriters) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
append(WALSplitter.RegionEntryBuffer buffer)
Append the buffer to a new recovered edits file, then close it after all done
|
List<org.apache.hadoop.fs.Path> |
finishWritingAndClose() |
int |
getNumberOfRecoveredRegions() |
Map<byte[],Long> |
getOutputCounts()
since the splitting process may create multiple output files, we need a map
regionRecoverStatMap to track the output count of each region.
|
keepRegionEventfinishWriting, flush, restartWriterThreadsIfNeeded, startWriterThreadspublic BoundedLogWriterCreationOutputSink(WALSplitter walSplitter, WALSplitter.PipelineController controller, EntryBuffers entryBuffers, int numWriters)
public List<org.apache.hadoop.fs.Path> finishWritingAndClose() throws IOException
finishWritingAndClose 在类中 LogRecoveredEditsOutputSinkIOExceptionpublic Map<byte[],Long> getOutputCounts()
getOutputCounts 在类中 LogRecoveredEditsOutputSinkpublic int getNumberOfRecoveredRegions()
getNumberOfRecoveredRegions 在类中 LogRecoveredEditsOutputSinkpublic void append(WALSplitter.RegionEntryBuffer buffer) throws IOException
append 在类中 LogRecoveredEditsOutputSinkbuffer - contain all entries of a certain regionIOException - when closeWriter failedCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.