public final class ExternalDataConfiguration
extends com.google.api.client.json.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
com.google.api.client.util.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.
|
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.
|
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 |
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, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, 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 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 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 com.google.api.client.json.GenericJsonpublic ExternalDataConfiguration clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2018 Google. All rights reserved.