Class: Google::Apis::DataprocV1::SparkSqlBatch

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SparkSqlBatch

Returns a new instance of SparkSqlBatch.



5575
5576
5577
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5575

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#jar_file_urisArray<String>

Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. Corresponds to the JSON property jarFileUris

Returns:

  • (Array<String>)


5561
5562
5563
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5561

def jar_file_uris
  @jar_file_uris
end

#query_file_uriString

Required. The HCFS URI of the script that contains Spark SQL queries to execute. Corresponds to the JSON property queryFileUri

Returns:

  • (String)


5567
5568
5569
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5567

def query_file_uri
  @query_file_uri
end

#query_variablesHash<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

Returns:

  • (Hash<String,String>)


5573
5574
5575
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5573

def query_variables
  @query_variables
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5580
5581
5582
5583
5584
# File 'lib/google/apis/dataproc_v1/classes.rb', line 5580

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