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.
8759 8760 8761 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8759 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
8745 8746 8747 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8745 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
8751 8752 8753 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8751 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
8757 8758 8759 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8757 def query_variables @query_variables end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8764 8765 8766 8767 8768 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8764 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 |