public final class ExternalDataConfiguration extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the BigQuery API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
ExternalDataConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
ExternalDataConfiguration |
clone() |
Boolean |
getAutodetect()
Try to detect schema and format options automatically.
|
AvroOptions |
getAvroOptions()
Additional properties to set if sourceFormat is set to Avro.
|
BigtableOptions |
getBigtableOptions()
[Optional] Additional options if sourceFormat is set to BIGTABLE.
|
String |
getCompression()
[Optional] The compression type of the data source.
|
String |
getConnectionId()
[Optional, Trusted Tester] Connection for external data source.
|
CsvOptions |
getCsvOptions()
Additional properties to set if sourceFormat is set to CSV.
|
List<String> |
getDecimalTargetTypes()
[Optional] Defines the list of possible SQL data types to which the source decimal values are
converted.
|
GoogleSheetsOptions |
getGoogleSheetsOptions()
[Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS.
|
HivePartitioningOptions |
getHivePartitioningOptions()
[Optional] Options to configure hive partitioning support.
|
Boolean |
getIgnoreUnknownValues()
[Optional] Indicates if BigQuery should allow extra values that are not represented in the
table schema.
|
Integer |
getMaxBadRecords()
[Optional] The maximum number of bad records that BigQuery can ignore when reading data.
|
ParquetOptions |
getParquetOptions()
Additional properties to set if sourceFormat is set to Parquet.
|
String |
getReferenceFileSchemaUri()
[Optional] Provide a referencing file with the expected table schema.
|
TableSchema |
getSchema()
[Optional] The schema for the data.
|
String |
getSourceFormat()
[Required] The data format.
|
List<String> |
getSourceUris()
[Required] The fully-qualified URIs that point to your data in Google Cloud.
|
ExternalDataConfiguration |
set(String fieldName,
Object value) |
ExternalDataConfiguration |
setAutodetect(Boolean autodetect)
Try to detect schema and format options automatically.
|
ExternalDataConfiguration |
setAvroOptions(AvroOptions avroOptions)
Additional properties to set if sourceFormat is set to Avro.
|
ExternalDataConfiguration |
setBigtableOptions(BigtableOptions bigtableOptions)
[Optional] Additional options if sourceFormat is set to BIGTABLE.
|
ExternalDataConfiguration |
setCompression(String compression)
[Optional] The compression type of the data source.
|
ExternalDataConfiguration |
setConnectionId(String connectionId)
[Optional, Trusted Tester] Connection for external data source.
|
ExternalDataConfiguration |
setCsvOptions(CsvOptions csvOptions)
Additional properties to set if sourceFormat is set to CSV.
|
ExternalDataConfiguration |
setDecimalTargetTypes(List<String> decimalTargetTypes)
[Optional] Defines the list of possible SQL data types to which the source decimal values are
converted.
|
ExternalDataConfiguration |
setGoogleSheetsOptions(GoogleSheetsOptions googleSheetsOptions)
[Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS.
|
ExternalDataConfiguration |
setHivePartitioningOptions(HivePartitioningOptions hivePartitioningOptions)
[Optional] Options to configure hive partitioning support.
|
ExternalDataConfiguration |
setIgnoreUnknownValues(Boolean ignoreUnknownValues)
[Optional] Indicates if BigQuery should allow extra values that are not represented in the
table schema.
|
ExternalDataConfiguration |
setMaxBadRecords(Integer maxBadRecords)
[Optional] The maximum number of bad records that BigQuery can ignore when reading data.
|
ExternalDataConfiguration |
setParquetOptions(ParquetOptions parquetOptions)
Additional properties to set if sourceFormat is set to Parquet.
|
ExternalDataConfiguration |
setReferenceFileSchemaUri(String referenceFileSchemaUri)
[Optional] Provide a referencing file with the expected table schema.
|
ExternalDataConfiguration |
setSchema(TableSchema schema)
[Optional] The schema for the data.
|
ExternalDataConfiguration |
setSourceFormat(String sourceFormat)
[Required] The data format.
|
ExternalDataConfiguration |
setSourceUris(List<String> sourceUris)
[Required] The fully-qualified URIs that point to your data in Google Cloud.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Boolean getAutodetect()
null for nonepublic ExternalDataConfiguration setAutodetect(Boolean autodetect)
autodetect - autodetect or null for nonepublic AvroOptions getAvroOptions()
null for nonepublic ExternalDataConfiguration setAvroOptions(AvroOptions avroOptions)
avroOptions - avroOptions or null for nonepublic BigtableOptions getBigtableOptions()
null for nonepublic ExternalDataConfiguration setBigtableOptions(BigtableOptions bigtableOptions)
bigtableOptions - bigtableOptions or null for nonepublic String getCompression()
null for nonepublic ExternalDataConfiguration setCompression(String compression)
compression - compression or null for nonepublic String getConnectionId()
null for nonepublic ExternalDataConfiguration setConnectionId(String connectionId)
connectionId - connectionId or null for nonepublic CsvOptions getCsvOptions()
null for nonepublic ExternalDataConfiguration setCsvOptions(CsvOptions csvOptions)
csvOptions - csvOptions or null for nonepublic List<String> getDecimalTargetTypes()
null for nonepublic ExternalDataConfiguration setDecimalTargetTypes(List<String> decimalTargetTypes)
decimalTargetTypes - decimalTargetTypes or null for nonepublic GoogleSheetsOptions getGoogleSheetsOptions()
null for nonepublic ExternalDataConfiguration setGoogleSheetsOptions(GoogleSheetsOptions googleSheetsOptions)
googleSheetsOptions - googleSheetsOptions or null for nonepublic HivePartitioningOptions getHivePartitioningOptions()
null for nonepublic ExternalDataConfiguration setHivePartitioningOptions(HivePartitioningOptions hivePartitioningOptions)
hivePartitioningOptions - hivePartitioningOptions or null for nonepublic Boolean getIgnoreUnknownValues()
null for nonepublic ExternalDataConfiguration setIgnoreUnknownValues(Boolean ignoreUnknownValues)
ignoreUnknownValues - ignoreUnknownValues or null for nonepublic Integer getMaxBadRecords()
null for nonepublic ExternalDataConfiguration setMaxBadRecords(Integer maxBadRecords)
maxBadRecords - maxBadRecords or null for nonepublic ParquetOptions getParquetOptions()
null for nonepublic ExternalDataConfiguration setParquetOptions(ParquetOptions parquetOptions)
parquetOptions - parquetOptions or null for nonepublic String getReferenceFileSchemaUri()
null for nonepublic ExternalDataConfiguration setReferenceFileSchemaUri(String referenceFileSchemaUri)
referenceFileSchemaUri - referenceFileSchemaUri or null for nonepublic TableSchema getSchema()
null for nonepublic ExternalDataConfiguration setSchema(TableSchema schema)
schema - schema or null for nonepublic String getSourceFormat()
null for nonepublic ExternalDataConfiguration setSourceFormat(String sourceFormat)
sourceFormat - sourceFormat or null for nonepublic List<String> getSourceUris()
null for nonepublic ExternalDataConfiguration setSourceUris(List<String> sourceUris)
sourceUris - sourceUris or null for nonepublic ExternalDataConfiguration set(String fieldName, Object value)
set in class GenericJsonpublic ExternalDataConfiguration clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.