Class WALInputFormat.WALRecordReader<K extends WALKey>
java.lang.Object
org.apache.hadoop.mapreduce.RecordReader<K,WALEdit>
org.apache.hadoop.hbase.mapreduce.WALInputFormat.WALRecordReader<K>
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
WALInputFormat.WALKeyRecordReader
- Enclosing class:
- WALInputFormat
abstract static class WALInputFormat.WALRecordReader<K extends WALKey>
extends org.apache.hadoop.mapreduce.RecordReader<K,WALEdit>
RecordReader
for an WAL
file. Implementation shared with deprecated
HLogInputFormat.-
Field Summary
Modifier and TypeFieldDescriptionprivate org.apache.hadoop.conf.Configuration
(package private) WAL.Entry
private long
private long
private org.apache.hadoop.fs.Path
private WALStreamReader
private long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private void
float
void
initialize
(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) boolean
private void
openReader
(org.apache.hadoop.fs.Path path) private WALStreamReader
openReader
(org.apache.hadoop.fs.Path path, long startPosition) private void
setCurrentPath
(org.apache.hadoop.fs.Path path) Methods inherited from class org.apache.hadoop.mapreduce.RecordReader
getCurrentKey
-
Field Details
-
reader
-
currentEntry
-
startTime
-
endTime
-
conf
-
logFile
-
currentPos
-
-
Constructor Details
-
WALRecordReader
-
-
Method Details
-
openReader
private WALStreamReader openReader(org.apache.hadoop.fs.Path path, long startPosition) throws IOException - Throws:
IOException
-
initialize
public void initialize(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException - Specified by:
initialize
in classorg.apache.hadoop.mapreduce.RecordReader<K extends WALKey,
WALEdit> - Throws:
IOException
InterruptedException
-
openReader
- Throws:
IOException
-
setCurrentPath
-
closeReader
- Throws:
IOException
-
nextKeyValue
- Specified by:
nextKeyValue
in classorg.apache.hadoop.mapreduce.RecordReader<K extends WALKey,
WALEdit> - Throws:
IOException
InterruptedException
-
getCurrentValue
- Specified by:
getCurrentValue
in classorg.apache.hadoop.mapreduce.RecordReader<K extends WALKey,
WALEdit> - Throws:
IOException
InterruptedException
-
getProgress
- Specified by:
getProgress
in classorg.apache.hadoop.mapreduce.RecordReader<K extends WALKey,
WALEdit> - Throws:
IOException
InterruptedException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classorg.apache.hadoop.mapreduce.RecordReader<K extends WALKey,
WALEdit> - Throws:
IOException
-