Struct spark_connect_rs::client::SparkConnectClient
source · pub struct SparkConnectClient<T> {
pub handler: ResponseHandler,
pub analyzer: AnalyzeHandler,
/* private fields */
}
Fields§
§handler: ResponseHandler
§analyzer: AnalyzeHandler
Implementations§
source§impl<T> SparkConnectClient<T>where
T: GrpcService<UnsyncBoxBody<Bytes, Status>>,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::Error: Into<Box<dyn Error + Sync + Send>>,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody: Body<Data = Bytes> + Send + 'static,
<<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody as Body>::Error: Into<Box<dyn Error + Sync + Send>> + Send,
impl<T> SparkConnectClient<T>where
T: GrpcService<UnsyncBoxBody<Bytes, Status>>,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::Error: Into<Box<dyn Error + Sync + Send>>,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody: Body<Data = Bytes> + Send + 'static,
<<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody as Body>::Error: Into<Box<dyn Error + Sync + Send>> + Send,
pub fn new( stub: Arc<RwLock<RawRwLock, SparkConnectServiceClient<T>>>, builder: ChannelBuilder ) -> SparkConnectClient<T>
pub fn session_id(&self) -> String
pub async fn analyze( &mut self, analyze: Analyze ) -> Result<&mut SparkConnectClient<T>, SparkError>
pub async fn execute_command(&mut self, plan: Plan) -> Result<(), SparkError>
pub async fn execute_command_and_fetch( &mut self, plan: Plan ) -> Result<ResponseHandler, SparkError>
pub async fn to_arrow(&mut self, plan: Plan) -> Result<RecordBatch, SparkError>
pub async fn to_first_value(&mut self, plan: Plan) -> Result<String, SparkError>
pub fn schema(&mut self) -> Result<DataType, SparkError>
pub fn explain(&mut self) -> Result<String, SparkError>
pub fn tree_string(&mut self) -> Result<String, SparkError>
pub fn is_local(&mut self) -> Result<bool, SparkError>
pub fn is_streaming(&mut self) -> Result<bool, SparkError>
pub fn input_files(&mut self) -> Result<Vec<String>, SparkError>
pub fn spark_version(&mut self) -> Result<String, SparkError>
pub fn ddl_parse(&mut self) -> Result<DataType, SparkError>
pub fn same_semantics(&mut self) -> Result<bool, SparkError>
pub fn semantic_hash(&mut self) -> Result<i32, SparkError>
pub fn get_storage_level(&mut self) -> Result<StorageLevel, SparkError>
Trait Implementations§
source§impl<T> Clone for SparkConnectClient<T>where
T: Clone,
impl<T> Clone for SparkConnectClient<T>where
T: Clone,
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> 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