Class: Google::Apis::DataprocV1::PrestoJob
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::PrestoJob
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dataproc_v1/classes.rb,
generated/google/apis/dataproc_v1/representations.rb,
generated/google/apis/dataproc_v1/representations.rb
Overview
A Dataproc job for running Presto (https://prestosql.io/) queries
Instance Attribute Summary collapse
-
#client_tags ⇒ Array<String>
Optional.
-
#continue_on_failure ⇒ Boolean
(also: #continue_on_failure?)
Optional.
-
#logging_config ⇒ Google::Apis::DataprocV1::LoggingConfig
The runtime logging config of the job.
-
#output_format ⇒ String
Optional.
-
#properties ⇒ Hash<String,String>
Optional.
-
#query_file_uri ⇒ String
The HCFS URI of the script that contains SQL queries.
-
#query_list ⇒ Google::Apis::DataprocV1::QueryList
A list of queries to run on a cluster.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PrestoJob
constructor
A new instance of PrestoJob.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PrestoJob
Returns a new instance of PrestoJob.
2416 2417 2418 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2416 def initialize(**args) update!(**args) end |
Instance Attribute Details
#client_tags ⇒ Array<String>
Optional. Presto client tags to attach to this query
Corresponds to the JSON property clientTags
2378 2379 2380 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2378 def @client_tags end |
#continue_on_failure ⇒ Boolean Also known as: continue_on_failure?
Optional. Whether to continue executing queries if a query fails. The default
value is false. Setting to true can be useful when executing independent
parallel queries.
Corresponds to the JSON property continueOnFailure
2385 2386 2387 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2385 def continue_on_failure @continue_on_failure end |
#logging_config ⇒ Google::Apis::DataprocV1::LoggingConfig
The runtime logging config of the job.
Corresponds to the JSON property loggingConfig
2391 2392 2393 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2391 def logging_config @logging_config end |
#output_format ⇒ String
Optional. The format in which query output will be displayed. See the Presto
documentation for supported output formats
Corresponds to the JSON property outputFormat
2397 2398 2399 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2397 def output_format @output_format end |
#properties ⇒ Hash<String,String>
Optional. A mapping of property names to values. Used to set Presto session
properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent
to using the --session flag in the Presto CLI
Corresponds to the JSON property properties
2404 2405 2406 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2404 def properties @properties end |
#query_file_uri ⇒ String
The HCFS URI of the script that contains SQL queries.
Corresponds to the JSON property queryFileUri
2409 2410 2411 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2409 def query_file_uri @query_file_uri end |
#query_list ⇒ Google::Apis::DataprocV1::QueryList
A list of queries to run on a cluster.
Corresponds to the JSON property queryList
2414 2415 2416 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2414 def query_list @query_list end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2421 2422 2423 2424 2425 2426 2427 2428 2429 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2421 def update!(**args) @client_tags = args[:client_tags] if args.key?(:client_tags) @continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure) @logging_config = args[:logging_config] if args.key?(:logging_config) @output_format = args[:output_format] if args.key?(:output_format) @properties = args[:properties] if args.key?(:properties) @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri) @query_list = args[:query_list] if args.key?(:query_list) end |