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 status(&self) -> Result<StreamingQueryStatus>
pub fn status(&self) -> Result<StreamingQueryStatus>
Get the current status of the query.
Sourcepub fn await_termination(
&self,
timeout_sec: Option<f64>,
) -> Result<Option<bool>>
pub fn await_termination( &self, timeout_sec: Option<f64>, ) -> Result<Option<bool>>
Wait for the query to terminate with optional timeout in seconds.
Sourcepub fn last_progress(&self) -> Result<Option<String>>
pub fn last_progress(&self) -> Result<Option<String>>
Get the last streaming progress, if available.
Sourcepub fn recent_progress(&self) -> Result<Vec<String>>
pub fn recent_progress(&self) -> Result<Vec<String>>
Get recent streaming progress results.
Sourcepub fn process_all_available(&self) -> Result<()>
pub fn process_all_available(&self) -> Result<()>
Process all available data in the streaming query.
Sourcepub fn explain(&self, extended: bool) -> Result<String>
pub fn explain(&self, extended: bool) -> Result<String>
Print the execution plan of the streaming query.
Sourcepub fn exception(&self) -> Result<Option<StreamingQueryException>>
pub fn exception(&self) -> Result<Option<StreamingQueryException>>
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 moreAuto 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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