public class SparkBigQueryConfig extends Object implements BigQueryConfig, BigQueryClient.CreateTableOptions, BigQueryClient.LoadDataOptions, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
SparkBigQueryConfig.IntermediateFormat |
static class |
SparkBigQueryConfig.WriteMethod |
| Modifier and Type | Field and Description |
|---|---|
static String |
BIGQUERY_JOB_TIMEOUT_IN_MINUTES |
static String |
DATE_PARTITION_PARAM |
static int |
DEFAULT_CACHE_EXPIRATION_IN_MINUTES |
static com.google.cloud.bigquery.QueryJobConfiguration.Priority |
DEFAULT_JOB_PRIORITY |
static String |
ENABLE_LIST_INFERENCE |
static String |
GPN_ATTRIBUTION |
static String |
IMPERSONATION_FOR_GROUP_PREFIX |
static String |
IMPERSONATION_FOR_USER_PREFIX |
static String |
IMPERSONATION_GLOBAL |
static String |
INTERMEDIATE_FORMAT_OPTION |
static int |
MAX_TRACE_ID_LENGTH |
static int |
MIN_BUFFERED_RESPONSES_PER_STREAM |
static int |
MIN_STREAMS_PER_PARTITION |
static String |
partitionOverwriteModeProperty |
PartitionOverwriteMode |
partitionOverwriteModeValue |
static String |
USE_AVRO_LOGICAL_TYPES_OPTION |
static String |
VALIDATE_SPARK_AVRO_PARAM |
static String |
VIEWS_ENABLED_OPTION |
static String |
WRITE_AT_LEAST_ONCE_OPTION |
static String |
WRITE_METHOD_PARAM |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitareClientCreationConfigsEqual, getClientCreationHashCodeofpublic static final int MAX_TRACE_ID_LENGTH
public static final String IMPERSONATION_GLOBAL
public static final String IMPERSONATION_FOR_USER_PREFIX
public static final String IMPERSONATION_FOR_GROUP_PREFIX
public static final String VIEWS_ENABLED_OPTION
public static final String USE_AVRO_LOGICAL_TYPES_OPTION
public static final String DATE_PARTITION_PARAM
public static final String VALIDATE_SPARK_AVRO_PARAM
public static final String ENABLE_LIST_INFERENCE
public static final String INTERMEDIATE_FORMAT_OPTION
public static final String WRITE_METHOD_PARAM
public static final String WRITE_AT_LEAST_ONCE_OPTION
public static final int MIN_BUFFERED_RESPONSES_PER_STREAM
public static final int MIN_STREAMS_PER_PARTITION
public static final int DEFAULT_CACHE_EXPIRATION_IN_MINUTES
public static final com.google.cloud.bigquery.QueryJobConfiguration.Priority DEFAULT_JOB_PRIORITY
public static final String partitionOverwriteModeProperty
public PartitionOverwriteMode partitionOverwriteModeValue
public static final String BIGQUERY_JOB_TIMEOUT_IN_MINUTES
public static final String GPN_ATTRIBUTION
public static SparkBigQueryConfig from(Map<String,String> options, com.google.common.collect.ImmutableMap<String,String> customDefaults, DataSourceVersion dataSourceVersion, org.apache.spark.sql.SparkSession spark, Optional<org.apache.spark.sql.types.StructType> schema, boolean tableIsMandatory)
public static SparkBigQueryConfig from(Map<String,String> optionsInput, com.google.common.collect.ImmutableMap<String,String> originalGlobalOptions, org.apache.hadoop.conf.Configuration hadoopConfiguration, com.google.common.collect.ImmutableMap<String,String> customDefaults, int defaultParallelism, org.apache.spark.sql.internal.SQLConf sqlConf, String sparkVersion, Optional<org.apache.spark.sql.types.StructType> schema, boolean tableIsMandatory)
public com.google.auth.Credentials createCredentials()
public com.google.cloud.bigquery.TableId getTableId()
getTableId in interface BigQueryClient.LoadDataOptionspublic com.google.cloud.bigquery.TableId getTableIdWithoutThePartition()
public String getParentProjectId()
getParentProjectId in interface BigQueryConfigpublic boolean useParentProjectForMetadataOperations()
useParentProjectForMetadataOperations in interface BigQueryConfigpublic Optional<String> getAccessTokenProviderFQCN()
getAccessTokenProviderFQCN in interface BigQueryConfigpublic Optional<String> getAccessTokenProviderConfig()
getAccessTokenProviderConfig in interface BigQueryConfigpublic String getLoggedInUserName()
getLoggedInUserName in interface BigQueryConfigpublic Set<String> getLoggedInUserGroups()
getLoggedInUserGroups in interface BigQueryConfigpublic Optional<Map<String,String>> getImpersonationServiceAccountsForUsers()
getImpersonationServiceAccountsForUsers in interface BigQueryConfigpublic Optional<Map<String,String>> getImpersonationServiceAccountsForGroups()
getImpersonationServiceAccountsForGroups in interface BigQueryConfigpublic Optional<String> getImpersonationServiceAccount()
getImpersonationServiceAccount in interface BigQueryConfigpublic Optional<String> getCredentialsKey()
getCredentialsKey in interface BigQueryConfigpublic Optional<String> getCredentialsFile()
getCredentialsFile in interface BigQueryConfigpublic Optional<String> getAccessToken()
getAccessToken in interface BigQueryConfigpublic Optional<org.apache.spark.sql.types.StructType> getSchema()
public OptionalInt getMaxParallelism()
public OptionalInt getPreferredMinParallelism()
public int getDefaultParallelism()
public SparkBigQueryConfig.IntermediateFormat getIntermediateFormat()
public com.google.cloud.bigquery.storage.v1.DataFormat getReadDataFormat()
public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec getArrowCompressionCodec()
public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.ResponseCompressionCodec getResponseCompressionCodec()
public boolean isCombinePushedDownFilters()
public boolean isUseAvroLogicalTypes()
isUseAvroLogicalTypes in interface BigQueryClient.LoadDataOptionspublic com.google.common.collect.ImmutableList<String> getDecimalTargetTypes()
getDecimalTargetTypes in interface BigQueryClient.LoadDataOptionspublic boolean isViewsEnabled()
isViewsEnabled in interface BigQueryConfigpublic Optional<String> getMaterializationProject()
getMaterializationProject in interface BigQueryConfigpublic Optional<String> getMaterializationDataset()
getMaterializationDataset in interface BigQueryConfigpublic Optional<String> getPartitionField()
getPartitionField in interface BigQueryClient.LoadDataOptionspublic OptionalLong getPartitionExpirationMs()
getPartitionExpirationMs in interface BigQueryClient.LoadDataOptionspublic Optional<Boolean> getPartitionRequireFilter()
getPartitionRequireFilter in interface BigQueryClient.LoadDataOptionspublic Optional<com.google.cloud.bigquery.TimePartitioning.Type> getPartitionType()
getPartitionType in interface BigQueryClient.LoadDataOptionspublic Optional<com.google.cloud.bigquery.RangePartitioning.Range> getPartitionRange()
getPartitionRange in interface BigQueryClient.LoadDataOptionspublic com.google.cloud.bigquery.TimePartitioning.Type getPartitionTypeOrDefault()
getPartitionTypeOrDefault in interface BigQueryClient.LoadDataOptionspublic Optional<com.google.common.collect.ImmutableList<String>> getClusteredFields()
getClusteredFields in interface BigQueryClient.LoadDataOptionspublic Optional<com.google.cloud.bigquery.JobInfo.CreateDisposition> getCreateDisposition()
getCreateDisposition in interface BigQueryClient.LoadDataOptionspublic boolean isOptimizedEmptyProjection()
public com.google.common.collect.ImmutableList<com.google.cloud.bigquery.JobInfo.SchemaUpdateOption> getLoadSchemaUpdateOptions()
getLoadSchemaUpdateOptions in interface BigQueryClient.LoadDataOptionspublic int getMaterializationExpirationTimeInMinutes()
public int getMaxReadRowsRetries()
public boolean getPushAllFilters()
public boolean getEnableModeCheckForSchemaFields()
getEnableModeCheckForSchemaFields in interface BigQueryClient.LoadDataOptionspublic int getBigQueryClientConnectTimeout()
getBigQueryClientConnectTimeout in interface BigQueryConfigpublic int getBigQueryClientReadTimeout()
getBigQueryClientReadTimeout in interface BigQueryConfigpublic BigQueryProxyConfig getBigQueryProxyConfig()
getBigQueryProxyConfig in interface BigQueryConfigpublic Optional<String> getBigQueryStorageGrpcEndpoint()
getBigQueryStorageGrpcEndpoint in interface BigQueryConfigpublic Optional<String> getBigQueryHttpEndpoint()
getBigQueryHttpEndpoint in interface BigQueryConfigpublic int getCacheExpirationTimeInMinutes()
getCacheExpirationTimeInMinutes in interface BigQueryConfigpublic Optional<Long> getCreateReadSessionTimeoutInSeconds()
getCreateReadSessionTimeoutInSeconds in interface BigQueryConfigpublic PartitionOverwriteMode getPartitionOverwriteModeValue()
public int getChannelPoolSize()
getChannelPoolSize in interface BigQueryConfigpublic Optional<Integer> getFlowControlWindowBytes()
getFlowControlWindowBytes in interface BigQueryConfigpublic com.google.cloud.bigquery.QueryJobConfiguration.Priority getQueryJobPriority()
getQueryJobPriority in interface BigQueryConfigpublic Optional<String> getKmsKeyName()
getKmsKeyName in interface BigQueryClient.CreateTableOptionsgetKmsKeyName in interface BigQueryClient.LoadDataOptionspublic com.google.api.gax.retrying.RetrySettings getBigQueryClientRetrySettings()
getBigQueryClientRetrySettings in interface BigQueryConfigpublic com.google.api.gax.retrying.RetrySettings getBigqueryDataWriteHelperRetrySettings()
public SparkBigQueryConfig.WriteMethod getWriteMethod()
public boolean isWriteAtLeastOnce()
public com.google.common.collect.ImmutableMap<String,String> getBigQueryJobLabels()
getBigQueryJobLabels in interface BigQueryConfigpublic boolean getAllowMapTypeConversion()
public long getBigQueryJobTimeoutInMinutes()
getBigQueryJobTimeoutInMinutes in interface BigQueryConfigpublic com.google.common.collect.ImmutableMap<String,String> getBigQueryTableLabels()
getBigQueryTableLabels in interface BigQueryClient.CreateTableOptionspublic OptionalLong getSnapshotTimeMillis()
public ReadSessionCreatorConfig toReadSessionCreatorConfig()
public BigQueryClient.ReadTableOptions toReadTableOptions()
Copyright © 2024. All rights reserved.