Send feedback
Class ExtractJobConfiguration.Builder (2.24.3)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.24.3 keyboard_arrow_down
public static final class ExtractJobConfiguration . Builder extends JobConfiguration . Builder<ExtractJobConfiguration , ExtractJobConfiguration . Builder>
Methods
public ExtractJobConfiguration build ()
Overrides
public ExtractJobConfiguration . Builder setCompression ( String compression )
Sets the compression value to use for exported files. If not set exported files are not
compressed.
Compression
Parameter Name Description compression
String
public ExtractJobConfiguration . Builder setDestinationUris ( List<String> destinationUris )
Sets the list of fully-qualified Google Cloud Storage URIs (e.g. gs://bucket/path) where the
extracted table should be written.
Parameter Name Description destinationUris
List <String >
public ExtractJobConfiguration . Builder setFieldDelimiter ( String fieldDelimiter )
Sets the delimiter to use between fields in the exported data. By default "," is used.
Parameter Name Description fieldDelimiter
String
public ExtractJobConfiguration . Builder setFormat ( String format )
Sets the exported file format. If not set table is exported in CSV format.
Destination Format
Parameter Name Description format
String
public ExtractJobConfiguration . Builder setJobTimeoutMs ( Long jobTimeoutMs )
[Optional] Job timeout in milliseconds. If this time limit is exceeded, BigQuery may attempt
to terminate the job.
Parameter Name Description jobTimeoutMs
Long
jobTimeoutMs or null
for none
public ExtractJobConfiguration . Builder setLabels ( Map<String , String> labels )
The labels associated with this job. You can use these to organize and group your jobs. Label
keys and values can be no longer than 63 characters, can only contain lowercase letters,
numeric characters, underscores and dashes. International characters are allowed. Label
values are optional. Label keys must start with a letter and each label in the list must have
a different key.
public ExtractJobConfiguration . Builder setPrintHeader ( Boolean printHeader )
Sets whether to print out a header row in the results. By default an header is printed.
Parameter Name Description printHeader
Boolean
public ExtractJobConfiguration . Builder setSourceModel ( ModelId sourceModel )
Sets the model to export.
Parameter Name Description sourceModel
ModelId
public ExtractJobConfiguration . Builder setSourceTable ( TableId sourceTable )
Sets the table to export.
Parameter Name Description sourceTable
TableId
public ExtractJobConfiguration . Builder 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).
Parameter Name Description useAvroLogicalTypes
Boolean
useAvroLogicalTypes or null
for none
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-10 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-09-10 UTC."}