public class DocumentDBOutputFormat extends org.apache.hadoop.mapreduce.OutputFormat<org.apache.hadoop.io.Writable,DocumentDBWritable>
| Constructor and Description |
|---|
DocumentDBOutputFormat() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext context)
Validates the required properties needed to write to documentdb.
|
org.apache.hadoop.mapreduce.OutputCommitter |
getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.Writable,DocumentDBWritable> |
getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Creates an instance of DocumentDBRecordWriter.
|
public void checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext context)
throws IOException,
InterruptedException
checkOutputSpecs in class org.apache.hadoop.mapreduce.OutputFormat<org.apache.hadoop.io.Writable,DocumentDBWritable>IOExceptionInterruptedExceptionpublic org.apache.hadoop.mapreduce.OutputCommitter getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException,
InterruptedException
getOutputCommitter in class org.apache.hadoop.mapreduce.OutputFormat<org.apache.hadoop.io.Writable,DocumentDBWritable>IOExceptionInterruptedExceptionpublic org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.Writable,DocumentDBWritable> getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException
getRecordWriter in class org.apache.hadoop.mapreduce.OutputFormat<org.apache.hadoop.io.Writable,DocumentDBWritable>IOExceptionInterruptedExceptionCopyright © 2015. All rights reserved.