pub struct SparkConnectClient<T> { /* private fields */ }
Expand description
Client wrapper to handle submitting requests and handling responses from the SparkConnectServiceClient
Implementations§
Source§impl<T> SparkConnectClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> SparkConnectClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new( stub: Arc<RwLock<SparkConnectServiceClient<T>>>, builder: ChannelBuilder, ) -> Self
Sourcepub fn session_id(&self) -> String
pub fn session_id(&self) -> String
Session ID
Sourcepub fn set_reattachable_execute(
&mut self,
setting: bool,
) -> Result<(), SparkError>
pub fn set_reattachable_execute( &mut self, setting: bool, ) -> Result<(), SparkError>
Change the reattachable execute value
pub fn execute_plan_request_with_metadata(&self) -> ExecutePlanRequest
pub fn analyze_plan_request_with_metadata(&self) -> AnalyzePlanRequest
pub async fn execute_and_fetch( &mut self, req: ExecutePlanRequest, ) -> Result<(), SparkError>
pub async fn analyze( &mut self, analyze: Analyze, ) -> Result<&mut Self, SparkError>
pub fn add_tag(&mut self, tag: &str) -> Result<(), SparkError>
pub fn remove_tag(&mut self, tag: &str) -> Result<(), SparkError>
pub async fn config_request( &self, operation: Operation, ) -> Result<ConfigResponse, SparkError>
pub async fn interrupt_request( &self, interrupt_type: InterruptType, id_or_tag: Option<String>, ) -> Result<InterruptResponse, SparkError>
pub async fn execute_command(&mut self, plan: Plan) -> Result<(), SparkError>
pub async fn to_arrow(&mut self, plan: Plan) -> Result<RecordBatch, SparkError>
pub fn schema(&self) -> Result<DataType, SparkError>
pub fn explain(&self) -> Result<String, SparkError>
pub fn tree_string(&self) -> Result<String, SparkError>
pub fn is_local(&self) -> Result<bool, SparkError>
pub fn is_streaming(&self) -> Result<bool, SparkError>
pub fn input_files(&self) -> Result<Vec<String>, SparkError>
pub fn spark_version(&mut self) -> Result<String, SparkError>
pub fn ddl_parse(&self) -> Result<DataType, SparkError>
pub fn same_semantics(&self) -> Result<bool, SparkError>
pub fn semantic_hash(&self) -> Result<i32, SparkError>
pub fn get_storage_level(&self) -> Result<StorageLevel, SparkError>
Trait Implementations§
Source§impl<T: Clone> Clone for SparkConnectClient<T>
impl<T: Clone> Clone for SparkConnectClient<T>
Source§fn clone(&self) -> SparkConnectClient<T>
fn clone(&self) -> SparkConnectClient<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for SparkConnectClient<T>
impl<T> !RefUnwindSafe for SparkConnectClient<T>
impl<T> Send for SparkConnectClient<T>
impl<T> Sync for SparkConnectClient<T>
impl<T> Unpin for SparkConnectClient<T>
impl<T> !UnwindSafe for SparkConnectClient<T>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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