#[non_exhaustive]pub struct SparkTaskConfig {
pub file_uris: Vec<String>,
pub archive_uris: Vec<String>,
pub infrastructure_spec: Option<InfrastructureSpec>,
pub driver: Option<Driver>,
/* private fields */
}Expand description
User-specified config for running a Spark task.
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.file_uris: Vec<String>Optional. Cloud Storage URIs of files to be placed in the working directory of each executor.
archive_uris: Vec<String>Optional. Cloud Storage URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
infrastructure_spec: Option<InfrastructureSpec>Optional. Infrastructure specification for the execution.
driver: Option<Driver>Required. The specification of the main method to call to drive the job. Specify either the jar file that contains the main class or the main class name.
Implementations§
Source§impl SparkTaskConfig
impl SparkTaskConfig
pub fn new() -> Self
Sourcepub fn set_file_uris<T, V>(self, v: T) -> Self
pub fn set_file_uris<T, V>(self, v: T) -> Self
Sets the value of file_uris.
Sourcepub fn set_archive_uris<T, V>(self, v: T) -> Self
pub fn set_archive_uris<T, V>(self, v: T) -> Self
Sets the value of archive_uris.
Sourcepub fn set_infrastructure_spec<T>(self, v: T) -> Selfwhere
T: Into<InfrastructureSpec>,
pub fn set_infrastructure_spec<T>(self, v: T) -> Selfwhere
T: Into<InfrastructureSpec>,
Sets the value of infrastructure_spec.
Sourcepub fn set_or_clear_infrastructure_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<InfrastructureSpec>,
pub fn set_or_clear_infrastructure_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<InfrastructureSpec>,
Sets or clears the value of infrastructure_spec.
Sourcepub fn set_driver<T: Into<Option<Driver>>>(self, v: T) -> Self
pub fn set_driver<T: Into<Option<Driver>>>(self, v: T) -> Self
Sets the value of driver.
Note that all the setters affecting driver are mutually
exclusive.
Sourcepub fn main_jar_file_uri(&self) -> Option<&String>
pub fn main_jar_file_uri(&self) -> Option<&String>
The value of driver
if it holds a MainJarFileUri, None if the field is not set or
holds a different branch.
Sourcepub fn set_main_jar_file_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_main_jar_file_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of driver
to hold a MainJarFileUri.
Note that all the setters affecting driver are
mutually exclusive.
Sourcepub fn main_class(&self) -> Option<&String>
pub fn main_class(&self) -> Option<&String>
The value of driver
if it holds a MainClass, None if the field is not set or
holds a different branch.
Sourcepub fn set_main_class<T: Into<String>>(self, v: T) -> Self
pub fn set_main_class<T: Into<String>>(self, v: T) -> Self
Sets the value of driver
to hold a MainClass.
Note that all the setters affecting driver are
mutually exclusive.
Sourcepub fn python_script_file(&self) -> Option<&String>
pub fn python_script_file(&self) -> Option<&String>
The value of driver
if it holds a PythonScriptFile, None if the field is not set or
holds a different branch.
Sourcepub fn set_python_script_file<T: Into<String>>(self, v: T) -> Self
pub fn set_python_script_file<T: Into<String>>(self, v: T) -> Self
Sets the value of driver
to hold a PythonScriptFile.
Note that all the setters affecting driver are
mutually exclusive.
Sourcepub fn sql_script_file(&self) -> Option<&String>
pub fn sql_script_file(&self) -> Option<&String>
The value of driver
if it holds a SqlScriptFile, None if the field is not set or
holds a different branch.
Sourcepub fn set_sql_script_file<T: Into<String>>(self, v: T) -> Self
pub fn set_sql_script_file<T: Into<String>>(self, v: T) -> Self
Sets the value of driver
to hold a SqlScriptFile.
Note that all the setters affecting driver are
mutually exclusive.
Sourcepub fn sql_script(&self) -> Option<&String>
pub fn sql_script(&self) -> Option<&String>
The value of driver
if it holds a SqlScript, None if the field is not set or
holds a different branch.
Sourcepub fn set_sql_script<T: Into<String>>(self, v: T) -> Self
pub fn set_sql_script<T: Into<String>>(self, v: T) -> Self
Sets the value of driver
to hold a SqlScript.
Note that all the setters affecting driver are
mutually exclusive.
Trait Implementations§
Source§impl Clone for SparkTaskConfig
impl Clone for SparkTaskConfig
Source§fn clone(&self) -> SparkTaskConfig
fn clone(&self) -> SparkTaskConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more