public class BigQueryFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BIGQUERY_CONFIG_PREFIX |
static com.google.common.collect.ImmutableList<java.lang.String> |
BIGQUERY_OAUTH_SCOPES |
static java.lang.String |
BIGQUERY_PRIVATE_KEY_FILE |
static java.lang.String |
BIGQUERY_SERVICE_ACCOUNT |
static java.lang.String |
BQC_ID |
static BigQueryFactory |
INSTANCE
Static instance of the BigQueryFactory.
|
static java.lang.String |
PROPERTIES_FILE |
static java.lang.String |
UNKNOWN_VERSION |
static java.lang.String |
VERSION |
static java.lang.String |
VERSION_PROPERTY |
| Constructor and Description |
|---|
BigQueryFactory() |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.client.auth.oauth2.Credential |
createBigQueryCredential(org.apache.hadoop.conf.Configuration config)
Construct credentials from the passed Configuration.
|
com.google.api.services.bigquery.Bigquery |
getBigQuery(org.apache.hadoop.conf.Configuration config)
Constructs a BigQuery from the credential constructed from the environment.
|
com.google.api.services.bigquery.Bigquery |
getBigQueryFromCredential(com.google.api.client.auth.oauth2.Credential credential,
java.lang.String appName)
Constructs a BigQuery from a given Credential.
|
BigQueryHelper |
getBigQueryHelper(org.apache.hadoop.conf.Configuration config)
Constructs a BigQueryHelper from a raw Bigquery constructed with
getBigQuery(org.apache.hadoop.conf.Configuration). |
public static final java.lang.String BIGQUERY_CONFIG_PREFIX
public static final com.google.common.collect.ImmutableList<java.lang.String> BIGQUERY_OAUTH_SCOPES
public static final java.lang.String BIGQUERY_SERVICE_ACCOUNT
public static final java.lang.String BIGQUERY_PRIVATE_KEY_FILE
public static final java.lang.String PROPERTIES_FILE
public static final java.lang.String VERSION_PROPERTY
public static final java.lang.String UNKNOWN_VERSION
public static final java.lang.String VERSION
public static final java.lang.String BQC_ID
public static final BigQueryFactory INSTANCE
public com.google.api.client.auth.oauth2.Credential createBigQueryCredential(org.apache.hadoop.conf.Configuration config)
throws java.security.GeneralSecurityException,
java.io.IOException
java.io.IOException - on IO Error.java.security.GeneralSecurityException - on General Security Error.public BigQueryHelper getBigQueryHelper(org.apache.hadoop.conf.Configuration config) throws java.security.GeneralSecurityException, java.io.IOException
getBigQuery(org.apache.hadoop.conf.Configuration).java.security.GeneralSecurityExceptionjava.io.IOExceptionpublic com.google.api.services.bigquery.Bigquery getBigQuery(org.apache.hadoop.conf.Configuration config)
throws java.security.GeneralSecurityException,
java.io.IOException
java.io.IOException - on IO Error.java.security.GeneralSecurityException - on General Security Error.public com.google.api.services.bigquery.Bigquery getBigQueryFromCredential(com.google.api.client.auth.oauth2.Credential credential,
java.lang.String appName)
Copyright © 2019. All rights reserved.