Google Cloud Dataproc V1 Client - Class SparkSqlBatch (3.7.1)

Reference documentation and code samples for the Google Cloud Dataproc V1 Client class SparkSqlBatch.

A configuration for running Apache Spark SQL queries as a batch workload.

Generated from protobuf message google.cloud.dataproc.v1.SparkSqlBatch

Namespace

Google \ Cloud \ Dataproc \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ query_file_uri string

Required. The HCFS URI of the script that contains Spark SQL queries to execute.

↳ query_variables array|Google\Protobuf\Internal\MapField

Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";).

↳ jar_file_uris array

Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.

getQueryFileUri

Required. The HCFS URI of the script that contains Spark SQL queries to execute.

Returns
TypeDescription
string

setQueryFileUri

Required. The HCFS URI of the script that contains Spark SQL queries to execute.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getQueryVariables

Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";).

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setQueryVariables

Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";).

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getJarFileUris

Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setJarFileUris

Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this