class WALSplitter.LogRecoveredEditsOutputSink extends WALSplitter.OutputSink
blacklistedRegions, closeAndCleanCompleted, controller, entryBuffers, numThreads, regionMaximumEditLogSeqNum, reporter, skippedEdits, splits, writers, writersClosed, writerThreads
Constructor and Description |
---|
WALSplitter.LogRecoveredEditsOutputSink(WALSplitter.PipelineController controller,
WALSplitter.EntryBuffers entryBuffers,
int numWriters) |
Modifier and Type | Method and Description |
---|---|
void |
append(WALSplitter.RegionEntryBuffer buffer) |
private List<org.apache.hadoop.fs.Path> |
close()
Close all of the output streams.
|
private List<IOException> |
closeLogWriters(List<IOException> thrown) |
private WALSplitter.WriterAndPath |
createWAP(byte[] region,
WAL.Entry entry,
org.apache.hadoop.fs.Path rootdir) |
private void |
filterCellByStore(WAL.Entry logEntry) |
List<org.apache.hadoop.fs.Path> |
finishWritingAndClose() |
int |
getNumberOfRecoveredRegions() |
Map<byte[],Long> |
getOutputCounts() |
private WALSplitter.WriterAndPath |
getWriterAndPath(WAL.Entry entry)
Get a writer and path for a log starting at the given entry.
|
boolean |
keepRegionEvent(WAL.Entry entry)
Some WALEdit's contain only KV's for account on what happened to a region.
|
finishWriting, flush, getNumOpenWriters, getRegionMaximumEditLogSeqNum, getSkippedEdits, setReporter, startWriterThreads, updateRegionMaximumEditLogSeqNum
public WALSplitter.LogRecoveredEditsOutputSink(WALSplitter.PipelineController controller, WALSplitter.EntryBuffers entryBuffers, int numWriters)
public List<org.apache.hadoop.fs.Path> finishWritingAndClose() throws IOException
finishWritingAndClose
in class WALSplitter.OutputSink
IOException
private List<org.apache.hadoop.fs.Path> close() throws IOException
IOException
private List<IOException> closeLogWriters(List<IOException> thrown) throws IOException
IOException
private WALSplitter.WriterAndPath getWriterAndPath(WAL.Entry entry) throws IOException
IOException
private WALSplitter.WriterAndPath createWAP(byte[] region, WAL.Entry entry, org.apache.hadoop.fs.Path rootdir) throws IOException
IOException
private void filterCellByStore(WAL.Entry logEntry)
public void append(WALSplitter.RegionEntryBuffer buffer) throws IOException
append
in class WALSplitter.OutputSink
buffer
- A WAL Edit EntryIOException
public boolean keepRegionEvent(WAL.Entry entry)
WALSplitter.OutputSink
keepRegionEvent
in class WALSplitter.OutputSink
public Map<byte[],Long> getOutputCounts()
getOutputCounts
in class WALSplitter.OutputSink
public int getNumberOfRecoveredRegions()
getNumberOfRecoveredRegions
in class WALSplitter.OutputSink
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.