Struct google_api_proto::google::cloud::bigquery::v2::SparkOptions
source · pub struct SparkOptions {
pub connection: String,
pub runtime_version: String,
pub container_image: String,
pub properties: BTreeMap<String, String>,
pub main_file_uri: String,
pub py_file_uris: Vec<String>,
pub jar_uris: Vec<String>,
pub file_uris: Vec<String>,
pub archive_uris: Vec<String>,
pub main_class: String,
}
Expand description
Options for a user-defined Spark routine.
Fields§
§connection: String
Fully qualified name of the user-provided Spark connection object. Format:
"projects/{project_id}/locations/{location_id}/connections/{connection_id}"
runtime_version: String
Runtime version. If not specified, the default runtime version is used.
container_image: String
Custom container image for the runtime environment.
properties: BTreeMap<String, String>
Configuration properties as a set of key/value pairs, which will be passed on to the Spark application. For more information, see Apache Spark and the procedure option list.
main_file_uri: String
The main file/jar URI of the Spark application. Exactly one of the definition_body field and the main_file_uri field must be set for Python. Exactly one of main_class and main_file_uri field should be set for Java/Scala language type.
py_file_uris: Vec<String>
Python files to be placed on the PYTHONPATH for PySpark application.
Supported file types: .py
, .egg
, and .zip
. For more information
about Apache Spark, see
Apache Spark.
jar_uris: Vec<String>
JARs to include on the driver and executor CLASSPATH. For more information about Apache Spark, see Apache Spark.
file_uris: Vec<String>
Files to be placed in the working directory of each executor. For more information about Apache Spark, see Apache Spark.
archive_uris: Vec<String>
Archive files to be extracted into the working directory of each executor. For more information about Apache Spark, see Apache Spark.
main_class: String
The fully qualified name of a class in jar_uris, for example, com.example.wordcount. Exactly one of main_class and main_jar_uri field should be set for Java/Scala language type.
Trait Implementations§
source§impl Clone for SparkOptions
impl Clone for SparkOptions
source§fn clone(&self) -> SparkOptions
fn clone(&self) -> SparkOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SparkOptions
impl Debug for SparkOptions
source§impl Default for SparkOptions
impl Default for SparkOptions
source§impl Message for SparkOptions
impl Message for SparkOptions
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for SparkOptions
impl PartialEq for SparkOptions
source§fn eq(&self, other: &SparkOptions) -> bool
fn eq(&self, other: &SparkOptions) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SparkOptions
Auto Trait Implementations§
impl Freeze for SparkOptions
impl RefUnwindSafe for SparkOptions
impl Send for SparkOptions
impl Sync for SparkOptions
impl Unpin for SparkOptions
impl UnwindSafe for SparkOptions
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request