@InterfaceStability.Evolving
public class DirectBigQueryInputFormat
extends org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.NullWritable,org.apache.avro.generic.GenericRecord>
Modifier and Type | Class and Description |
---|---|
static class |
DirectBigQueryInputFormat.DirectBigQueryInputSplit
InputSplit containing session metadata.
|
Constructor and Description |
---|
DirectBigQueryInputFormat() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,org.apache.avro.generic.GenericRecord> |
createRecordReader(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
protected BigQueryHelper |
getBigQueryHelper(org.apache.hadoop.conf.Configuration config)
Helper method to override for testing.
|
protected com.google.cloud.bigquery.storage.v1beta1.BigQueryStorageClient |
getClient(org.apache.hadoop.conf.Configuration config)
Helper method to override for testing.
|
List<org.apache.hadoop.mapreduce.InputSplit> |
getSplits(org.apache.hadoop.mapreduce.JobContext context) |
public List<org.apache.hadoop.mapreduce.InputSplit> getSplits(org.apache.hadoop.mapreduce.JobContext context) throws IOException
getSplits
in class org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.NullWritable,org.apache.avro.generic.GenericRecord>
IOException
public org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,org.apache.avro.generic.GenericRecord> createRecordReader(org.apache.hadoop.mapreduce.InputSplit inputSplit, org.apache.hadoop.mapreduce.TaskAttemptContext context)
createRecordReader
in class org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.NullWritable,org.apache.avro.generic.GenericRecord>
protected com.google.cloud.bigquery.storage.v1beta1.BigQueryStorageClient getClient(org.apache.hadoop.conf.Configuration config) throws IOException
IOException
- on IO Error.protected BigQueryHelper getBigQueryHelper(org.apache.hadoop.conf.Configuration config) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
Copyright © 2020. All rights reserved.