pub struct SparkConnectClient<T> {
pub handler: ResponseHandler,
pub analyzer: AnalyzeHandler,
pub user_context: Option<UserContext>,
pub tags: Vec<String>,
/* private fields */
}
Fields§
§handler: ResponseHandler
§analyzer: AnalyzeHandler
§user_context: Option<UserContext>
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
pub fn session_id(&self) -> String
pub async fn analyze( &mut self, analyze: Analyze, ) -> Result<&mut Self, SparkError>
pub async fn interrupt_request( &self, interrupt_type: InterruptType, id_or_tag: Option<String>, ) -> Result<InterruptResponse, 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 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(&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§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