|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.RecordReader<LongWritable,Text>
org.apache.hadoop.mapreduce.lib.input.LineRecordReader
public class LineRecordReader
Treats keys as offset in file and value as line.
| Constructor Summary | |
|---|---|
LineRecordReader()
|
|
| Method Summary | |
|---|---|
void |
close()
Close the record reader. |
LongWritable |
getCurrentKey()
Get the current key |
Text |
getCurrentValue()
Get the current value. |
float |
getProgress()
Get the progress within the split |
void |
initialize(InputSplit genericSplit,
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 LineRecordReader()
| Method Detail |
|---|
public void initialize(InputSplit genericSplit,
TaskAttemptContext context)
throws IOException
RecordReader
initialize in class RecordReader<LongWritable,Text>genericSplit - the split that defines the range of records to readcontext - the information about the task
IOException
public boolean nextKeyValue()
throws IOException
RecordReader
nextKeyValue in class RecordReader<LongWritable,Text>IOExceptionpublic LongWritable getCurrentKey()
RecordReader
getCurrentKey in class RecordReader<LongWritable,Text>public Text getCurrentValue()
RecordReader
getCurrentValue in class RecordReader<LongWritable,Text>
public float getProgress()
throws IOException
getProgress in class RecordReader<LongWritable,Text>IOException
public void close()
throws IOException
RecordReader
close in interface Closeableclose in class RecordReader<LongWritable,Text>IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||