@InterfaceStability.Unstable
public class ForwardingBigQueryFileOutputFormat<K,V>
extends org.apache.hadoop.mapreduce.OutputFormat<K,V>
| Constructor and Description |
|---|
ForwardingBigQueryFileOutputFormat() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext job)
Checks to make sure the configuration is valid, the output path doesn't already exist, and that
a connection to BigQuery can be established.
|
protected org.apache.hadoop.mapreduce.OutputCommitter |
createCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Create a new OutputCommitter for this OutputFormat.
|
protected org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<K,V> |
getDelegate(org.apache.hadoop.conf.Configuration conf)
Gets a reference to the underlying delegate used by this OutputFormat.
|
org.apache.hadoop.mapreduce.OutputCommitter |
getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Gets the cached OutputCommitter, creating a new one if it doesn't exist.
|
org.apache.hadoop.mapreduce.RecordWriter<K,V> |
getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Gets the RecordWriter from the wrapped FileOutputFormat.
|
public void checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext job)
throws org.apache.hadoop.mapred.FileAlreadyExistsException,
java.io.IOException
public org.apache.hadoop.mapreduce.OutputCommitter getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws java.io.IOException
public org.apache.hadoop.mapreduce.RecordWriter<K,V> getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws java.io.IOException, java.lang.InterruptedException
protected org.apache.hadoop.mapreduce.OutputCommitter createCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws java.io.IOException
context - the context to create the OutputCommitter from.java.io.IOException - if there's an issue while creating the OutputCommitter.protected org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<K,V> getDelegate(org.apache.hadoop.conf.Configuration conf) throws java.io.IOException
conf - the configuration to derive the delegate from.java.io.IOException - if unable to get the delegate.Copyright © 2019. All rights reserved.