#[non_exhaustive]pub struct SparkSqlBatch {
pub query_file_uri: String,
pub query_variables: HashMap<String, String>,
pub jar_file_uris: Vec<String>,
/* private fields */
}Expand description
A configuration for running Apache Spark SQL queries as a 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.query_file_uri: StringRequired. The HCFS URI of the script that contains Spark SQL queries to execute.
query_variables: HashMap<String, String>Optional. Mapping of query variable names to values (equivalent to the
Spark SQL command: SET name="value";).
jar_file_uris: Vec<String>Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
Implementations§
Source§impl SparkSqlBatch
impl SparkSqlBatch
pub fn new() -> Self
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 query_file_uri.
Sourcepub fn set_query_variables<T, K, V>(self, v: T) -> Self
pub fn set_query_variables<T, K, V>(self, v: T) -> Self
Sets the value of query_variables.
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.
Trait Implementations§
Source§impl Clone for SparkSqlBatch
impl Clone for SparkSqlBatch
Source§fn clone(&self) -> SparkSqlBatch
fn clone(&self) -> SparkSqlBatch
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 SparkSqlBatch
impl Debug for SparkSqlBatch
Source§impl Default for SparkSqlBatch
impl Default for SparkSqlBatch
Source§fn default() -> SparkSqlBatch
fn default() -> SparkSqlBatch
Returns the “default value” for a type. Read more
Source§impl Message for SparkSqlBatch
impl Message for SparkSqlBatch
Source§impl PartialEq for SparkSqlBatch
impl PartialEq for SparkSqlBatch
impl StructuralPartialEq for SparkSqlBatch
Auto Trait Implementations§
impl Freeze for SparkSqlBatch
impl RefUnwindSafe for SparkSqlBatch
impl Send for SparkSqlBatch
impl Sync for SparkSqlBatch
impl Unpin for SparkSqlBatch
impl UnwindSafe for SparkSqlBatch
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