pub struct StreamingQuery { /* private fields */ }Expand description
A handle to an active streaming query.
Mirrors pyspark.sql.connect.streaming.StreamingQuery.
Implementations§
Source§impl StreamingQuery
impl StreamingQuery
Sourcepub fn is_active(&self) -> Result<bool, SparkError>
pub fn is_active(&self) -> Result<bool, SparkError>
Check if the query is actively running.
Sourcepub fn status(&self) -> Result<StreamingQueryStatus, SparkError>
pub fn status(&self) -> Result<StreamingQueryStatus, SparkError>
Get the current status of the query.
Sourcepub fn stop(&self) -> Result<(), SparkError>
pub fn stop(&self) -> Result<(), SparkError>
Stop the streaming query.
Sourcepub fn await_termination(
&self,
timeout_sec: Option<f64>,
) -> Result<Option<bool>, SparkError>
pub fn await_termination( &self, timeout_sec: Option<f64>, ) -> Result<Option<bool>, SparkError>
Wait for the query to terminate with optional timeout in seconds.
Sourcepub fn last_progress(&self) -> Result<Option<String>, SparkError>
pub fn last_progress(&self) -> Result<Option<String>, SparkError>
Get the last streaming progress, if available.
Sourcepub fn recent_progress(&self) -> Result<Vec<String>, SparkError>
pub fn recent_progress(&self) -> Result<Vec<String>, SparkError>
Get recent streaming progress results.
Sourcepub fn process_all_available(&self) -> Result<(), SparkError>
pub fn process_all_available(&self) -> Result<(), SparkError>
Process all available data in the streaming query.
Sourcepub fn explain(&self, extended: bool) -> Result<String, SparkError>
pub fn explain(&self, extended: bool) -> Result<String, SparkError>
Print the execution plan of the streaming query.
Sourcepub fn exception(&self) -> Result<Option<StreamingQueryException>, SparkError>
pub fn exception(&self) -> Result<Option<StreamingQueryException>, SparkError>
Get any exception that occurred in the streaming query.
Trait Implementations§
Source§impl Clone for StreamingQuery
impl Clone for StreamingQuery
Source§fn clone(&self) -> StreamingQuery
fn clone(&self) -> StreamingQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl StreamingQueryExt for StreamingQuery
impl StreamingQueryExt for StreamingQuery
Source§fn is_active_async(&self) -> impl Future<Output = Result<bool>> + Send + 'static
fn is_active_async(&self) -> impl Future<Output = Result<bool>> + Send + 'static
Async
StreamingQuery::is_active.Source§fn status_async(
&self,
) -> impl Future<Output = Result<StreamingQueryStatus>> + Send + 'static
fn status_async( &self, ) -> impl Future<Output = Result<StreamingQueryStatus>> + Send + 'static
Async
StreamingQuery::status.Source§fn stop_async(&self) -> impl Future<Output = Result<()>> + Send + 'static
fn stop_async(&self) -> impl Future<Output = Result<()>> + Send + 'static
Async
StreamingQuery::stop.Source§fn await_termination_async(
&self,
timeout_sec: Option<f64>,
) -> impl Future<Output = Result<Option<bool>>> + Send + 'static
fn await_termination_async( &self, timeout_sec: Option<f64>, ) -> impl Future<Output = Result<Option<bool>>> + Send + 'static
Source§fn exception_async(
&self,
) -> impl Future<Output = Result<Option<StreamingQueryException>>> + Send + 'static
fn exception_async( &self, ) -> impl Future<Output = Result<Option<StreamingQueryException>>> + Send + 'static
Async
StreamingQuery::exception.Source§fn last_progress_async(
&self,
) -> impl Future<Output = Result<Option<String>>> + Send + 'static
fn last_progress_async( &self, ) -> impl Future<Output = Result<Option<String>>> + Send + 'static
Source§fn recent_progress_async(
&self,
) -> impl Future<Output = Result<Vec<String>>> + Send + 'static
fn recent_progress_async( &self, ) -> impl Future<Output = Result<Vec<String>>> + Send + 'static
Source§fn process_all_available_async(
&self,
) -> impl Future<Output = Result<()>> + Send + 'static
fn process_all_available_async( &self, ) -> impl Future<Output = Result<()>> + Send + 'static
Source§fn explain_async(
&self,
extended: bool,
) -> impl Future<Output = Result<String>> + Send + 'static
fn explain_async( &self, extended: bool, ) -> impl Future<Output = Result<String>> + Send + 'static
Async
StreamingQuery::explain.Auto Trait Implementations§
impl !RefUnwindSafe for StreamingQuery
impl !UnwindSafe for StreamingQuery
impl Freeze for StreamingQuery
impl Send for StreamingQuery
impl Sync for StreamingQuery
impl Unpin for StreamingQuery
impl UnsafeUnpin for StreamingQuery
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