|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.streaming.io.OutputReader<K,V>
public abstract class OutputReader<K,V>
Abstract base for classes that read the client's output.
| Constructor Summary | |
|---|---|
OutputReader()
|
|
| Method Summary | |
|---|---|
abstract K |
getCurrentKey()
Returns the current key. |
abstract V |
getCurrentValue()
Returns the current value. |
abstract String |
getLastOutput()
Returns the last output from the client as a String. |
void |
initialize(PipeMapRed pipeMapRed)
Initializes the OutputReader. |
abstract boolean |
readKeyValue()
Read the next key/value pair outputted by the client. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OutputReader()
| Method Detail |
|---|
public void initialize(PipeMapRed pipeMapRed)
throws IOException
IOException
public abstract boolean readKeyValue()
throws IOException
IOException
public abstract K getCurrentKey()
throws IOException
IOException
public abstract V getCurrentValue()
throws IOException
IOExceptionpublic abstract String getLastOutput()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||