|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectp2pMapReduce.mapreduceModule.input.RecordReader<KEYIN,VALUEIN>
KEYIN
- VALUEIN
- 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 java.io.IOException, java.lang.InterruptedException
split
- the split that defines the range of records to readcontext
- the information about the task
java.io.IOException
java.lang.InterruptedException
public abstract boolean nextKeyValue() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public abstract KEYIN getCurrentKey() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public abstract VALUEIN getCurrentValue() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public abstract float getProgress() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public abstract void close() throws java.io.IOException
close
in interface java.io.Closeable
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |