org.apache.hadoop.vertica
Class VerticaStreamingOutput
java.lang.Object
org.apache.hadoop.mapreduce.OutputFormat<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
org.apache.hadoop.vertica.VerticaStreamingOutput
public class VerticaStreamingOutput
- extends OutputFormat<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VerticaStreamingOutput
public VerticaStreamingOutput()
checkOutputSpecs
public void checkOutputSpecs(JobContext context)
throws IOException
- Description copied from class:
OutputFormat
- Check for validity of the output-specification for the job.
This is to validate the output specification for the job when it is
a job is submitted. Typically checks that it does not already exist,
throwing an exception when it already exists, so that output is not
overwritten.
- Specified by:
checkOutputSpecs
in class OutputFormat<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
- Parameters:
context
- information about the job
- Throws:
IOException
- when output should not be attempted
getRecordWriter
public RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> getRecordWriter(TaskAttemptContext context)
throws IOException
- Description copied from class:
OutputFormat
- Get the
RecordWriter
for the given task.
- Specified by:
getRecordWriter
in class OutputFormat<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
- Parameters:
context
- the information about the current task.
- Returns:
- a
RecordWriter
to write the output for the job.
- Throws:
IOException
getOutputCommitter
public OutputCommitter getOutputCommitter(TaskAttemptContext context)
throws IOException,
InterruptedException
- Description copied from class:
OutputFormat
- Get the output committer for this output format. This is responsible
for ensuring the output is committed correctly.
- Specified by:
getOutputCommitter
in class OutputFormat<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
- Parameters:
context
- the task context
- Returns:
- an output committer
- Throws:
IOException
InterruptedException
Copyright © 2009 The Apache Software Foundation