|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.streaming.io.OutputReader<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable>
org.apache.hadoop.streaming.io.RawBytesOutputReader
public class RawBytesOutputReader
OutputReader that reads the client's output as raw bytes.
Constructor Summary | |
---|---|
RawBytesOutputReader()
|
Method Summary | |
---|---|
org.apache.hadoop.io.BytesWritable |
getCurrentKey()
Returns the current key. |
org.apache.hadoop.io.BytesWritable |
getCurrentValue()
Returns the current value. |
String |
getLastOutput()
Returns the last output from the client as a String. |
void |
initialize(PipeMapRed pipeMapRed)
Initializes the OutputReader. |
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 RawBytesOutputReader()
Method Detail |
---|
public void initialize(PipeMapRed pipeMapRed) throws IOException
OutputReader
initialize
in class OutputReader<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable>
IOException
public boolean readKeyValue() throws IOException
OutputReader
readKeyValue
in class OutputReader<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable>
IOException
public org.apache.hadoop.io.BytesWritable getCurrentKey() throws IOException
OutputReader
getCurrentKey
in class OutputReader<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable>
IOException
public org.apache.hadoop.io.BytesWritable getCurrentValue() throws IOException
OutputReader
getCurrentValue
in class OutputReader<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable>
IOException
public String getLastOutput()
OutputReader
getLastOutput
in class OutputReader<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |