|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.RecordReader<MultiFileWordCount.WordOffset,Text>
org.apache.hadoop.examples.MultiFileWordCount.CombineFileLineRecordReader
public static class MultiFileWordCount.CombineFileLineRecordReader
RecordReader is responsible from extracting records from a chunk of the CombineFileSplit.
| Constructor Summary | |
|---|---|
MultiFileWordCount.CombineFileLineRecordReader(CombineFileSplit split,
TaskAttemptContext context,
Integer index)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiFileWordCount.CombineFileLineRecordReader(CombineFileSplit split,
TaskAttemptContext context,
Integer index)
throws IOException
IOException| Method Detail |
|---|
public void initialize(InputSplit split,
TaskAttemptContext context)
throws IOException,
InterruptedException
RecordReader
initialize in class RecordReader<MultiFileWordCount.WordOffset,Text>split - the split that defines the range of records to readcontext - the information about the task
IOException
InterruptedException
public void close()
throws IOException
RecordReader
close in interface Closeableclose in class RecordReader<MultiFileWordCount.WordOffset,Text>IOException
public float getProgress()
throws IOException
RecordReader
getProgress in class RecordReader<MultiFileWordCount.WordOffset,Text>IOException
public boolean nextKeyValue()
throws IOException
RecordReader
nextKeyValue in class RecordReader<MultiFileWordCount.WordOffset,Text>IOException
public MultiFileWordCount.WordOffset getCurrentKey()
throws IOException,
InterruptedException
RecordReader
getCurrentKey in class RecordReader<MultiFileWordCount.WordOffset,Text>IOException
InterruptedException
public Text getCurrentValue()
throws IOException,
InterruptedException
RecordReader
getCurrentValue in class RecordReader<MultiFileWordCount.WordOffset,Text>IOException
InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||