#[non_exhaustive]pub struct SparkRBatch {
pub main_r_file_uri: String,
pub args: Vec<String>,
pub file_uris: Vec<String>,
pub archive_uris: Vec<String>,
/* private fields */
}Expand description
A configuration for running an Apache SparkR batch workload.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.main_r_file_uri: StringRequired. The HCFS URI of the main R file to use as the driver.
Must be a .R or .r file.
args: Vec<String>Optional. The arguments to pass to the Spark driver. Do not include
arguments that can be set as batch properties, such as --conf, since a
collision can occur that causes an incorrect batch submission.
file_uris: Vec<String>Optional. HCFS URIs of files to be placed in the working directory of each executor.
archive_uris: Vec<String>Optional. HCFS URIs of archives to be extracted into the working directory
of each executor. Supported file types:
.jar, .tar, .tar.gz, .tgz, and .zip.
Implementations§
Source§impl SparkRBatch
impl SparkRBatch
pub fn new() -> Self
Sourcepub fn set_main_r_file_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_main_r_file_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of main_r_file_uri.
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.
Trait Implementations§
Source§impl Clone for SparkRBatch
impl Clone for SparkRBatch
Source§fn clone(&self) -> SparkRBatch
fn clone(&self) -> SparkRBatch
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SparkRBatch
impl Debug for SparkRBatch
Source§impl Default for SparkRBatch
impl Default for SparkRBatch
Source§fn default() -> SparkRBatch
fn default() -> SparkRBatch
Returns the “default value” for a type. Read more
Source§impl Message for SparkRBatch
impl Message for SparkRBatch
Source§impl PartialEq for SparkRBatch
impl PartialEq for SparkRBatch
impl StructuralPartialEq for SparkRBatch
Auto Trait Implementations§
impl Freeze for SparkRBatch
impl RefUnwindSafe for SparkRBatch
impl Send for SparkRBatch
impl Sync for SparkRBatch
impl Unpin for SparkRBatch
impl UnwindSafe for SparkRBatch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more