#[non_exhaustive]pub struct TrinoJob {
pub continue_on_failure: bool,
pub output_format: String,
pub client_tags: Vec<String>,
pub properties: HashMap<String, String>,
pub logging_config: Option<LoggingConfig>,
pub queries: Option<Queries>,
/* private fields */
}Expand description
A Dataproc job for running Trino queries. IMPORTANT: The Dataproc Trino Optional Component must be enabled when the cluster is created to submit a Trino job to the cluster.
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.continue_on_failure: boolOptional. Whether to continue executing queries if a query fails.
The default value is false. Setting to true can be useful when
executing independent parallel queries.
output_format: StringOptional. The format in which query output will be displayed. See the Trino documentation for supported output formats
Optional. Trino client tags to attach to this query
properties: HashMap<String, String>Optional. A mapping of property names to values. Used to set Trino session properties Equivalent to using the –session flag in the Trino CLI
logging_config: Option<LoggingConfig>Optional. The runtime log config for job execution.
queries: Option<Queries>Required. The sequence of Trino queries to execute, specified as either an HCFS file URI or as a list of queries.
Implementations§
Source§impl TrinoJob
impl TrinoJob
pub fn new() -> Self
Sourcepub fn set_continue_on_failure<T: Into<bool>>(self, v: T) -> Self
pub fn set_continue_on_failure<T: Into<bool>>(self, v: T) -> Self
Sets the value of continue_on_failure.
Sourcepub fn set_output_format<T: Into<String>>(self, v: T) -> Self
pub fn set_output_format<T: Into<String>>(self, v: T) -> Self
Sets the value of output_format.
Sets the value of client_tags.
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_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.