|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.mapreduce.RecordReader<KEYIN,VALUEIN>
KEYIN
- VALUEIN
- @InterfaceAudience.Public @InterfaceStability.Stable public abstract class RecordReader<KEYIN,VALUEIN>
The record reader breaks the data into key/value pairs for input to the
Mapper
.
Constructor Summary | |
---|---|
RecordReader()
|
Method Summary | |
---|---|
abstract void |
close()
Close the record reader. |
abstract KEYIN |
getCurrentKey()
Get the current key |
abstract VALUEIN |
getCurrentValue()
Get the current value. |
abstract float |
getProgress()
The current progress of the record reader through its data. |
abstract void |
initialize(InputSplit split,
TaskAttemptContext context)
Called once at initialization. |
abstract 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 RecordReader()
Method Detail |
---|
public abstract void initialize(InputSplit split, TaskAttemptContext context) throws IOException, InterruptedException
split
- the split that defines the range of records to readcontext
- the information about the task
IOException
InterruptedException
public abstract boolean nextKeyValue() throws IOException, InterruptedException
IOException
InterruptedException
public abstract KEYIN getCurrentKey() throws IOException, InterruptedException
IOException
InterruptedException
public abstract VALUEIN getCurrentValue() throws IOException, InterruptedException
IOException
InterruptedException
public abstract float getProgress() throws IOException, InterruptedException
IOException
InterruptedException
public abstract void close() throws IOException
close
in interface Closeable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |