#[non_exhaustive]pub struct SparkSqlJob {
pub script_variables: HashMap<String, String>,
pub properties: HashMap<String, String>,
pub jar_file_uris: Vec<String>,
pub logging_config: Option<LoggingConfig>,
pub queries: Option<Queries>,
/* private fields */
}Expand description
A Dataproc job for running Apache Spark SQL queries.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.script_variables: HashMap<String, String>Optional. Mapping of query variable names to values (equivalent to the
Spark SQL command: SET name="value";).
properties: HashMap<String, String>Optional. A mapping of property names to values, used to configure Spark SQL’s SparkConf. Properties that conflict with values set by the Dataproc API might be overwritten.
jar_file_uris: Vec<String>Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
logging_config: Option<LoggingConfig>Optional. The runtime log config for job execution.
queries: Option<Queries>Required. The sequence of Spark SQL queries to execute, specified as either an HCFS file URI or as a list of queries.
Implementations§
Source§impl SparkSqlJob
impl SparkSqlJob
pub fn new() -> Self
Sourcepub fn set_script_variables<T, K, V>(self, v: T) -> Self
pub fn set_script_variables<T, K, V>(self, v: T) -> Self
Sets the value of script_variables.
Sourcepub fn set_properties<T, K, V>(self, v: T) -> Self
pub fn set_properties<T, K, V>(self, v: T) -> Self
Sets the value of properties.
Sourcepub fn set_jar_file_uris<T, V>(self, v: T) -> Self
pub fn set_jar_file_uris<T, V>(self, v: T) -> Self
Sets the value of jar_file_uris.
Sourcepub fn set_logging_config<T>(self, v: T) -> Selfwhere
T: Into<LoggingConfig>,
pub fn set_logging_config<T>(self, v: T) -> Selfwhere
T: Into<LoggingConfig>,
Sets the value of logging_config.
Sourcepub fn set_or_clear_logging_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<LoggingConfig>,
pub fn set_or_clear_logging_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<LoggingConfig>,
Sets or clears the value of logging_config.
Sourcepub fn set_queries<T: Into<Option<Queries>>>(self, v: T) -> Self
pub fn set_queries<T: Into<Option<Queries>>>(self, v: T) -> Self
Sets the value of queries.
Note that all the setters affecting queries are mutually
exclusive.
Sourcepub fn query_file_uri(&self) -> Option<&String>
pub fn query_file_uri(&self) -> Option<&String>
The value of queries
if it holds a QueryFileUri, None if the field is not set or
holds a different branch.
Sourcepub fn set_query_file_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_query_file_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of queries
to hold a QueryFileUri.
Note that all the setters affecting queries are
mutually exclusive.
Trait Implementations§
Source§impl Clone for SparkSqlJob
impl Clone for SparkSqlJob
Source§fn clone(&self) -> SparkSqlJob
fn clone(&self) -> SparkSqlJob
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more