org.apache.pig.impl.streaming
Class DefaultInputHandler
java.lang.Object
org.apache.pig.impl.streaming.InputHandler
org.apache.pig.impl.streaming.DefaultInputHandler
public class DefaultInputHandler
- extends InputHandler
DefaultInputHandler
handles the input for the Pig-Streaming
executable in a InputType#SYNCHRONOUS
manner by feeding it input
via its stdin
.
Method Summary |
void |
bindTo(OutputStream os)
Bind the InputHandler to the OutputStream
from which it reads input and sends it to the managed process. |
void |
close()
Close the InputHandler since there is no more input
to be sent to the managed process. |
InputHandler.InputType |
getInputType()
Get the handled InputType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultInputHandler
public DefaultInputHandler()
DefaultInputHandler
public DefaultInputHandler(StreamingCommand.HandleSpec spec)
getInputType
public InputHandler.InputType getInputType()
- Description copied from class:
InputHandler
- Get the handled
InputType
- Specified by:
getInputType
in class InputHandler
- Returns:
- the handled
InputType
bindTo
public void bindTo(OutputStream os)
throws IOException
- Description copied from class:
InputHandler
- Bind the
InputHandler
to the OutputStream
from which it reads input and sends it to the managed process.
- Overrides:
bindTo
in class InputHandler
- Parameters:
os
- OutputStream
from which to read input data for the
managed process
- Throws:
IOException
close
public void close()
throws IOException
- Description copied from class:
InputHandler
- Close the
InputHandler
since there is no more input
to be sent to the managed process.
- Overrides:
close
in class InputHandler
- Throws:
IOException
Copyright © ${year} The Apache Software Foundation