K
- Key type.V
- Value type must be JsonObject or a derived type..IndirectBigQueryOutputFormat
instead.
An OutputFormat that sends the output of a Hadoop job directly to BigQuery.
BigQueryOutputFormat accepts key, value pairs, but the returned BigQueryRecordWriter writes only the value to the database as each BigQuery value already contains a BigQuery key.
This is deprecated because it creates many temporary tables, which can drain user quota.
@Deprecated
public class BigQueryOutputFormat<K,V extends com.google.gson.JsonObject>
extends org.apache.hadoop.mapreduce.OutputFormat<K,V>
Modifier and Type | Field and Description |
---|---|
static java.text.NumberFormat |
NUMBER_FORMAT
Deprecated.
|
static java.lang.String |
TEMP_NAME
Deprecated.
|
Constructor and Description |
---|
BigQueryOutputFormat()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext context)
Deprecated.
Checks for validity of the output-specification for the job.
|
BigQueryOutputCommitter |
getOutputCommitter(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.mapreduce.TaskAttemptID taskAttemptId)
Deprecated.
|
BigQueryOutputCommitter |
getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Deprecated.
Gets the OutputCommiter which ensures that the temporary files are cleaned up and output
commits are scheduled.
|
org.apache.hadoop.mapreduce.RecordWriter<K,V> |
getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Deprecated.
Returns a new RecordWriter for writing outputs to the BigQuery.
|
public static final java.text.NumberFormat NUMBER_FORMAT
public static final java.lang.String TEMP_NAME
public void checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext context) throws java.io.IOException
TODO(user): check fields is a properly formatted TableSchema.
public BigQueryOutputCommitter getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws java.io.IOException, java.lang.InterruptedException
public BigQueryOutputCommitter getOutputCommitter(org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.mapreduce.TaskAttemptID taskAttemptId) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
Copyright © 2018. All rights reserved.