public class LineRecordReader extends RecordReader<LongWritable,Text>
Constructor and Description |
---|
LineRecordReader() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 taskIOException
public boolean nextKeyValue() throws IOException
RecordReader
nextKeyValue
in class RecordReader<LongWritable,Text>
IOException
public LongWritable getCurrentKey()
RecordReader
getCurrentKey
in class RecordReader<LongWritable,Text>
public Text getCurrentValue()
RecordReader
getCurrentValue
in class RecordReader<LongWritable,Text>
public float getProgress()
getProgress
in class RecordReader<LongWritable,Text>
public void close() throws IOException
RecordReader
close
in interface Closeable
close
in interface AutoCloseable
close
in class RecordReader<LongWritable,Text>
IOException
Copyright © 2010 The Apache Software Foundation