@InterfaceStability.Unstable public class IndirectBigQueryOutputCommitter extends ForwardingBigQueryFileOutputCommitter
| Constructor and Description |
|---|
IndirectBigQueryOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context,
org.apache.hadoop.mapreduce.OutputCommitter delegate)
This class acts as a wrapper which delegates calls to another OutputCommitter whose
responsibility is to generate files in the defined output path.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abortJob(org.apache.hadoop.mapreduce.JobContext context,
org.apache.hadoop.mapreduce.JobStatus.State state)
Performs a cleanup of the output path in addition to delegating the call to the wrapped
OutputCommitter.
|
void |
commitJob(org.apache.hadoop.mapreduce.JobContext context)
Runs an import job on BigQuery for the data in the output path in addition to calling the
delegate's commitJob.
|
abortTask, cleanup, commitTask, getBigQueryHelper, getDelegate, getOutputFileURIs, needsTaskCommit, setupJob, setupTaskpublic IndirectBigQueryOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context,
org.apache.hadoop.mapreduce.OutputCommitter delegate)
throws java.io.IOException
context - the context of the task.delegate - the OutputCommitter that this will delegate functionality to.java.io.IOException - if there's an exception while validating the output path or getting the
BigQueryHelper.public void commitJob(org.apache.hadoop.mapreduce.JobContext context)
throws java.io.IOException
commitJob in class ForwardingBigQueryFileOutputCommitterjava.io.IOExceptionpublic void abortJob(org.apache.hadoop.mapreduce.JobContext context,
org.apache.hadoop.mapreduce.JobStatus.State state)
throws java.io.IOException
abortJob in class ForwardingBigQueryFileOutputCommitterjava.io.IOExceptionCopyright © 2019. All rights reserved.