public static class MultiFileWordCount.CombineFileLineRecordReader extends RecordReader<MultiFileWordCount.WordOffset,Text>
| Constructor and Description |
|---|
MultiFileWordCount.CombineFileLineRecordReader(CombineFileSplit split,
TaskAttemptContext context,
Integer index) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the record reader.
|
MultiFileWordCount.WordOffset |
getCurrentKey()
Get the current key
|
Text |
getCurrentValue()
Get the current value.
|
float |
getProgress()
The current progress of the record reader through its data.
|
void |
initialize(InputSplit split,
TaskAttemptContext context)
Called once at initialization.
|
boolean |
nextKeyValue()
Read the next key, value pair.
|
public MultiFileWordCount.CombineFileLineRecordReader(CombineFileSplit split, TaskAttemptContext context, Integer index) throws IOException
IOExceptionpublic void initialize(InputSplit split, TaskAttemptContext context) throws IOException, InterruptedException
RecordReaderinitialize in class RecordReader<MultiFileWordCount.WordOffset,Text>split - the split that defines the range of records to readcontext - the information about the taskIOExceptionInterruptedExceptionpublic void close()
throws IOException
RecordReaderclose in interface Closeableclose in interface AutoCloseableclose in class RecordReader<MultiFileWordCount.WordOffset,Text>IOExceptionpublic float getProgress()
throws IOException
RecordReadergetProgress in class RecordReader<MultiFileWordCount.WordOffset,Text>IOExceptionpublic boolean nextKeyValue()
throws IOException
RecordReadernextKeyValue in class RecordReader<MultiFileWordCount.WordOffset,Text>IOExceptionpublic MultiFileWordCount.WordOffset getCurrentKey() throws IOException, InterruptedException
RecordReadergetCurrentKey in class RecordReader<MultiFileWordCount.WordOffset,Text>IOExceptionInterruptedExceptionpublic Text getCurrentValue() throws IOException, InterruptedException
RecordReadergetCurrentValue in class RecordReader<MultiFileWordCount.WordOffset,Text>IOExceptionInterruptedExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.