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.| Modifier and Type | Field and Description |
|---|---|
(package private) WAL.Entry |
currentEntry |
private long |
endTime |
private WAL.Reader |
reader |
private long |
startTime |
| Constructor and Description |
|---|
WALInputFormat.WALRecordReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
WALEdit |
getCurrentValue() |
float |
getProgress() |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
boolean |
nextKeyValue() |
private WAL.Reader reader
WAL.Entry currentEntry
private long startTime
private long endTime
public void initialize(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException,
InterruptedException
initialize in class org.apache.hadoop.mapreduce.RecordReader<K extends WALKey,WALEdit>IOExceptionInterruptedExceptionpublic boolean nextKeyValue()
throws IOException,
InterruptedException
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<K extends WALKey,WALEdit>IOExceptionInterruptedExceptionpublic WALEdit getCurrentValue() throws IOException, InterruptedException
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<K extends WALKey,WALEdit>IOExceptionInterruptedExceptionpublic float getProgress()
throws IOException,
InterruptedException
getProgress in class org.apache.hadoop.mapreduce.RecordReader<K extends WALKey,WALEdit>IOExceptionInterruptedExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReader<K extends WALKey,WALEdit>IOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.