public static class MultiFileWordCount.CombineFileLineRecordReader extends org.apache.hadoop.mapreduce.RecordReader<MultiFileWordCount.WordOffset,Text>
| Constructor and Description |
|---|
CombineFileLineRecordReader(org.apache.hadoop.mapreduce.lib.input.CombineFileSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context,
Integer index) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
MultiFileWordCount.WordOffset |
getCurrentKey() |
Text |
getCurrentValue() |
float |
getProgress() |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
boolean |
nextKeyValue() |
public CombineFileLineRecordReader(org.apache.hadoop.mapreduce.lib.input.CombineFileSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context, Integer index) throws IOException
IOExceptionpublic 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<MultiFileWordCount.WordOffset,Text>IOExceptionInterruptedExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReader<MultiFileWordCount.WordOffset,Text>IOExceptionpublic float getProgress()
throws IOException
getProgress in class org.apache.hadoop.mapreduce.RecordReader<MultiFileWordCount.WordOffset,Text>IOExceptionpublic boolean nextKeyValue()
throws IOException
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<MultiFileWordCount.WordOffset,Text>IOExceptionpublic MultiFileWordCount.WordOffset getCurrentKey() throws IOException, InterruptedException
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<MultiFileWordCount.WordOffset,Text>IOExceptionInterruptedExceptionpublic Text getCurrentValue() throws IOException, InterruptedException
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<MultiFileWordCount.WordOffset,Text>IOExceptionInterruptedExceptionCopyright © 2018 CERN. All Rights Reserved.