org.apache.hadoop.streaming.io
Class TextInputWriter
java.lang.Object
org.apache.hadoop.streaming.io.InputWriter<java.lang.Object,java.lang.Object>
org.apache.hadoop.streaming.io.TextInputWriter
- Direct Known Subclasses:
- KeyOnlyTextInputWriter
public class TextInputWriter
- extends InputWriter<java.lang.Object,java.lang.Object>
InputWriter that writes the client's input as text.
Field Summary |
protected java.io.DataOutput |
clientOut
|
Method Summary |
void |
initialize(PipeMapRed pipeMapRed)
Initializes the InputWriter. |
void |
writeKey(java.lang.Object key)
Writes an input key. |
protected void |
writeUTF8(java.lang.Object object)
|
void |
writeValue(java.lang.Object value)
Writes an input value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
clientOut
protected java.io.DataOutput clientOut
TextInputWriter
public TextInputWriter()
initialize
public void initialize(PipeMapRed pipeMapRed)
throws java.io.IOException
- Description copied from class:
InputWriter
- Initializes the InputWriter. This method has to be called before calling
any of the other methods.
- Overrides:
initialize
in class InputWriter<java.lang.Object,java.lang.Object>
- Throws:
java.io.IOException
writeKey
public void writeKey(java.lang.Object key)
throws java.io.IOException
- Description copied from class:
InputWriter
- Writes an input key.
- Specified by:
writeKey
in class InputWriter<java.lang.Object,java.lang.Object>
- Throws:
java.io.IOException
writeValue
public void writeValue(java.lang.Object value)
throws java.io.IOException
- Description copied from class:
InputWriter
- Writes an input value.
- Specified by:
writeValue
in class InputWriter<java.lang.Object,java.lang.Object>
- Throws:
java.io.IOException
writeUTF8
protected void writeUTF8(java.lang.Object object)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2009 The Apache Software Foundation