Class: Google::Apis::DataprocV1::SparkSqlBatch
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::SparkSqlBatch
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataproc_v1/classes.rb,
lib/google/apis/dataproc_v1/representations.rb,
lib/google/apis/dataproc_v1/representations.rb
Overview
A configuration for running Apache Spark SQL (https://spark.apache.org/sql/) queries as a batch workload.
Instance Attribute Summary collapse
-
#jar_file_uris ⇒ Array<String>
Optional.
-
#query_file_uri ⇒ String
Required.
-
#query_variables ⇒ Hash<String,String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SparkSqlBatch
constructor
A new instance of SparkSqlBatch.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SparkSqlBatch
Returns a new instance of SparkSqlBatch.
5329 5330 5331 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5329 def initialize(**args) update!(**args) end |
Instance Attribute Details
#jar_file_uris ⇒ Array<String>
Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
Corresponds to the JSON property jarFileUris
5315 5316 5317 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5315 def jar_file_uris @jar_file_uris end |
#query_file_uri ⇒ String
Required. The HCFS URI of the script that contains Spark SQL queries to
execute.
Corresponds to the JSON property queryFileUri
5321 5322 5323 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5321 def query_file_uri @query_file_uri end |
#query_variables ⇒ Hash<String,String>
Optional. Mapping of query variable names to values (equivalent to the Spark
SQL command: SET name="value";).
Corresponds to the JSON property queryVariables
5327 5328 5329 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5327 def query_variables @query_variables end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5334 5335 5336 5337 5338 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5334 def update!(**args) @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris) @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri) @query_variables = args[:query_variables] if args.key?(:query_variables) end |