org.apache.pig.impl.streaming
Class FileOutputHandler
java.lang.Object
org.apache.pig.impl.streaming.OutputHandler
org.apache.pig.impl.streaming.FileOutputHandler
public class FileOutputHandler
- extends OutputHandler
FileOutputHandler handles the output from the Pig-Streaming
executable in an asynchronous manner by reading it from
an external file specified by the user.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileOutputHandler
public FileOutputHandler(StreamingCommand.HandleSpec handleSpec)
throws ExecException
- Throws:
ExecException
getOutputType
public OutputHandler.OutputType getOutputType()
- Description copied from class:
OutputHandler
- Get the handled
OutputType
.
- Specified by:
getOutputType
in class OutputHandler
- Returns:
- the handled
OutputType
bindTo
public void bindTo(String fileName,
BufferedPositionedInputStream is,
long offset,
long end)
throws IOException
- Description copied from class:
OutputHandler
- Bind the
OutputHandler
to the InputStream
from which to read the output data of the managed process.
- Overrides:
bindTo
in class OutputHandler
is
- InputStream
from which to read the output data
of the managed process
- Throws:
IOException
Copyright © 2012 The Apache Software Foundation