pub struct SparkSessionBuilder {
pub channel_builder: ChannelBuilder,
/* private fields */
}
Expand description
SparkSessionBuilder creates a remote Spark Session a connection string.
The connection string is define based on the requirements from Spark Documentation
Fields§
§channel_builder: ChannelBuilder
Implementations§
Source§impl SparkSessionBuilder
impl SparkSessionBuilder
Sourcepub fn remote(connection: &str) -> Self
pub fn remote(connection: &str) -> Self
Validate a connect string for a remote Spark Session
String must conform to the Spark Documentation
Sourcepub fn app_name(self, name: &str) -> Self
pub fn app_name(self, name: &str) -> Self
Sets a name for the application, which will be shown in the Spark web UI.
Sourcepub async fn build(&self) -> Result<SparkSession, SparkError>
pub async fn build(&self) -> Result<SparkSession, SparkError>
Attempt to connect to a remote Spark Session
and return a SparkSession
Trait Implementations§
Source§impl Clone for SparkSessionBuilder
impl Clone for SparkSessionBuilder
Source§fn clone(&self) -> SparkSessionBuilder
fn clone(&self) -> SparkSessionBuilder
Returns a copy 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 SparkSessionBuilder
impl Debug for SparkSessionBuilder
Auto Trait Implementations§
impl Freeze for SparkSessionBuilder
impl RefUnwindSafe for SparkSessionBuilder
impl Send for SparkSessionBuilder
impl Sync for SparkSessionBuilder
impl Unpin for SparkSessionBuilder
impl UnwindSafe for SparkSessionBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
Wrap the input message
T
in a tonic::Request