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.Flags
AbstractMap.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.
|
BigtableOptions |
getBigtableOptions()
[Optional] Additional options if sourceFormat is set to BIGTABLE.
|
String |
getCompression()
[Optional] The compression type of the data source.
|
CsvOptions |
getCsvOptions()
Additional properties to set if sourceFormat is set to CSV.
|
GoogleSheetsOptions |
getGoogleSheetsOptions()
[Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS.
|
String |
getHivePartitioningMode()
[Optional, Trusted Tester] If hive partitioning is enabled, which mode to use.
|
HivePartitioningOptions |
getHivePartitioningOptions()
[Optional, Trusted Tester] 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.
|
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 |
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 |
setCsvOptions(CsvOptions csvOptions)
Additional properties to set if sourceFormat is set to CSV.
|
ExternalDataConfiguration |
setGoogleSheetsOptions(GoogleSheetsOptions googleSheetsOptions)
[Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS.
|
ExternalDataConfiguration |
setHivePartitioningMode(String hivePartitioningMode)
[Optional, Trusted Tester] If hive partitioning is enabled, which mode to use.
|
ExternalDataConfiguration |
setHivePartitioningOptions(HivePartitioningOptions hivePartitioningOptions)
[Optional, Trusted Tester] 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 |
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, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Boolean getAutodetect()
null
for nonepublic ExternalDataConfiguration setAutodetect(Boolean autodetect)
autodetect
- autodetect 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 CsvOptions getCsvOptions()
null
for nonepublic ExternalDataConfiguration setCsvOptions(CsvOptions csvOptions)
csvOptions
- csvOptions or null
for nonepublic GoogleSheetsOptions getGoogleSheetsOptions()
null
for nonepublic ExternalDataConfiguration setGoogleSheetsOptions(GoogleSheetsOptions googleSheetsOptions)
googleSheetsOptions
- googleSheetsOptions or null
for nonepublic String getHivePartitioningMode()
null
for nonepublic ExternalDataConfiguration setHivePartitioningMode(String hivePartitioningMode)
hivePartitioningMode
- hivePartitioningMode 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 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 GenericJson
public ExternalDataConfiguration clone()
clone
in class GenericJson
Copyright © 2011–2019 Google. All rights reserved.