Class: Google::Cloud::Bigquery::ExtractJob::Updater
- Inherits:
-
Google::Cloud::Bigquery::ExtractJob
- Object
- Job
- Google::Cloud::Bigquery::ExtractJob
- Google::Cloud::Bigquery::ExtractJob::Updater
- Defined in:
- lib/google/cloud/bigquery/extract_job.rb
Overview
Yielded to a block to accumulate changes for an API request.
Attributes collapse
-
#compression=(value) ⇒ Object
Sets the compression type.
-
#delimiter=(value) ⇒ Object
Sets the field delimiter.
-
#format=(new_format) ⇒ Object
Sets the destination file format.
-
#header=(value) ⇒ Object
Print a header row in the exported file.
-
#labels=(value) ⇒ Object
Sets the labels to use for the job.
-
#location=(value) ⇒ Object
Sets the geographic location where the job should run.
Methods inherited from Google::Cloud::Bigquery::ExtractJob
#avro?, #compression?, #csv?, #delimiter, #destinations, #destinations_counts, #destinations_file_counts, #json?, #print_header?, #source
Methods inherited from Job
#cancel, #configuration, #created_at, #done?, #ended_at, #error, #errors, #failed?, #job_id, #labels, #location, #pending?, #project_id, #reload!, #rerun!, #running?, #started_at, #state, #statistics, #status, #user_email, #wait_until_done!
Instance Method Details
#compression=(value) ⇒ Object
Sets the compression type.
237 238 239 |
# File 'lib/google/cloud/bigquery/extract_job.rb', line 237 def compression= value @gapi.configuration.extract.compression = value end |
#delimiter=(value) ⇒ Object
Sets the field delimiter.
248 249 250 |
# File 'lib/google/cloud/bigquery/extract_job.rb', line 248 def delimiter= value @gapi.configuration.extract.field_delimiter = value end |
#format=(new_format) ⇒ Object
Sets the destination file format. The default value is csv
.
The following values are supported:
csv
- CSVjson
- Newline-delimited JSONavro
- Avro
265 266 267 268 |
# File 'lib/google/cloud/bigquery/extract_job.rb', line 265 def format= new_format @gapi.configuration.extract.update! destination_format: Convert.source_format(new_format) end |
#header=(value) ⇒ Object
Print a header row in the exported file.
277 278 279 |
# File 'lib/google/cloud/bigquery/extract_job.rb', line 277 def header= value @gapi.configuration.extract.print_header = value end |
#labels=(value) ⇒ Object
Sets the labels to use for the job.
294 295 296 |
# File 'lib/google/cloud/bigquery/extract_job.rb', line 294 def labels= value @gapi.configuration.update! labels: value end |
#location=(value) ⇒ Object
Sets the geographic location where the job should run. Required except for US and EU.
225 226 227 |
# File 'lib/google/cloud/bigquery/extract_job.rb', line 225 def location= value @gapi.job_reference.location = value end |