Package org.apache.hadoop.hbase.wal
Class AbstractRecoveredEditsOutputSink.RecoveredEditsWriter
java.lang.Object
org.apache.hadoop.hbase.wal.AbstractRecoveredEditsOutputSink.RecoveredEditsWriter
- Enclosing class:
- AbstractRecoveredEditsOutputSink
Private data structure that wraps a
WALProvider.Writer
and its Path, also collecting
statistics about the data written to this output.-
Field Summary
Modifier and TypeFieldDescription(package private) long
(package private) long
(package private) final byte[]
(package private) final long
(package private) long
(package private) final org.apache.hadoop.fs.Path
(package private) final WALProvider.Writer
-
Constructor Summary
ConstructorDescriptionRecoveredEditsWriter
(byte[] encodedRegionName, org.apache.hadoop.fs.Path path, WALProvider.Writer writer, long minLogSeqNum) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
filterCellByStore
(WAL.Entry logEntry) private void
incrementEdits
(int edits) private void
incrementNanoTime
(long nanos) private void
incrementSkippedEdits
(int skipped) private void
logAndThrowWriterAppendFailure
(WAL.Entry logEntry, IOException e) (package private) void
writeRegionEntries
(List<WAL.Entry> entries)
-
Field Details
-
editsWritten
long editsWritten -
editsSkipped
long editsSkipped -
nanosSpent
long nanosSpent -
encodedRegionName
-
path
-
writer
-
minLogSeqNum
-
-
Constructor Details
-
RecoveredEditsWriter
RecoveredEditsWriter(byte[] encodedRegionName, org.apache.hadoop.fs.Path path, WALProvider.Writer writer, long minLogSeqNum)
-
-
Method Details
-
incrementEdits
-
incrementSkippedEdits
-
incrementNanoTime
-
writeRegionEntries
- Throws:
IOException
-
logAndThrowWriterAppendFailure
- Throws:
IOException
-
filterCellByStore
-