public final class JobConfigurationExtract 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 |
---|
JobConfigurationExtract() |
Modifier and Type | Method and Description |
---|---|
JobConfigurationExtract |
clone() |
String |
getCompression()
[Optional] The compression type to use for exported files.
|
String |
getDestinationFormat()
[Optional] The exported file format.
|
String |
getDestinationUri()
[Pick one] DEPRECATED: Use destinationUris instead, passing only one URI as necessary.
|
List<String> |
getDestinationUris()
[Pick one] A list of fully-qualified Google Cloud Storage URIs where the extracted table should
be written.
|
String |
getFieldDelimiter()
[Optional] Delimiter to use between fields in the exported data.
|
Boolean |
getPrintHeader()
[Optional] Whether to print out a header row in the results.
|
ModelReference |
getSourceModel()
A reference to the model being exported.
|
TableReference |
getSourceTable()
A reference to the table being exported.
|
Boolean |
getUseAvroLogicalTypes()
[Optional] If destinationFormat is set to "AVRO", this flag indicates whether to enable
extracting applicable column types (such as TIMESTAMP) to their corresponding AVRO logical
types (timestamp-micros), instead of only using their raw types (avro-long).
|
boolean |
isPrintHeader()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
JobConfigurationExtract |
set(String fieldName,
Object value) |
JobConfigurationExtract |
setCompression(String compression)
[Optional] The compression type to use for exported files.
|
JobConfigurationExtract |
setDestinationFormat(String destinationFormat)
[Optional] The exported file format.
|
JobConfigurationExtract |
setDestinationUri(String destinationUri)
[Pick one] DEPRECATED: Use destinationUris instead, passing only one URI as necessary.
|
JobConfigurationExtract |
setDestinationUris(List<String> destinationUris)
[Pick one] A list of fully-qualified Google Cloud Storage URIs where the extracted table should
be written.
|
JobConfigurationExtract |
setFieldDelimiter(String fieldDelimiter)
[Optional] Delimiter to use between fields in the exported data.
|
JobConfigurationExtract |
setPrintHeader(Boolean printHeader)
[Optional] Whether to print out a header row in the results.
|
JobConfigurationExtract |
setSourceModel(ModelReference sourceModel)
A reference to the model being exported.
|
JobConfigurationExtract |
setSourceTable(TableReference sourceTable)
A reference to the table being exported.
|
JobConfigurationExtract |
setUseAvroLogicalTypes(Boolean useAvroLogicalTypes)
[Optional] If destinationFormat is set to "AVRO", this flag indicates whether to enable
extracting applicable column types (such as TIMESTAMP) to their corresponding AVRO logical
types (timestamp-micros), instead of only using their raw types (avro-long).
|
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 String getCompression()
null
for nonepublic JobConfigurationExtract setCompression(String compression)
compression
- compression or null
for nonepublic String getDestinationFormat()
null
for nonepublic JobConfigurationExtract setDestinationFormat(String destinationFormat)
destinationFormat
- destinationFormat or null
for nonepublic String getDestinationUri()
null
for nonepublic JobConfigurationExtract setDestinationUri(String destinationUri)
destinationUri
- destinationUri or null
for nonepublic List<String> getDestinationUris()
null
for nonepublic JobConfigurationExtract setDestinationUris(List<String> destinationUris)
destinationUris
- destinationUris or null
for nonepublic String getFieldDelimiter()
null
for nonepublic JobConfigurationExtract setFieldDelimiter(String fieldDelimiter)
fieldDelimiter
- fieldDelimiter or null
for nonepublic Boolean getPrintHeader()
null
for nonepublic JobConfigurationExtract setPrintHeader(Boolean printHeader)
printHeader
- printHeader or null
for nonepublic boolean isPrintHeader()
Boolean.TRUE
or Boolean.FALSE
.
Boolean properties can have four possible values:
null
, Data.NULL_BOOLEAN
, Boolean.TRUE
or Boolean.FALSE
.
This method returns Boolean.TRUE
if the default of the property is Boolean.TRUE
and it is null
or Data.NULL_BOOLEAN
.
Boolean.FALSE
is returned if the default of the property is Boolean.FALSE
and
it is null
or Data.NULL_BOOLEAN
.
[ Optional] Whether to print out a header row in the results. Default is true. Not applicable when [ extracting models.
public ModelReference getSourceModel()
null
for nonepublic JobConfigurationExtract setSourceModel(ModelReference sourceModel)
sourceModel
- sourceModel or null
for nonepublic TableReference getSourceTable()
null
for nonepublic JobConfigurationExtract setSourceTable(TableReference sourceTable)
sourceTable
- sourceTable or null
for nonepublic Boolean getUseAvroLogicalTypes()
null
for nonepublic JobConfigurationExtract setUseAvroLogicalTypes(Boolean useAvroLogicalTypes)
useAvroLogicalTypes
- useAvroLogicalTypes or null
for nonepublic JobConfigurationExtract set(String fieldName, Object value)
set
in class GenericJson
public JobConfigurationExtract clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.