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.
9048 9049 9050 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9048 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
9034 9035 9036 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9034 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
9040 9041 9042 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9040 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
9046 9047 9048 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9046 def query_variables @query_variables end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9053 9054 9055 9056 9057 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9053 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 |