pub struct StreamingQuery { /* private fields */ }
Expand description
Represents the active streaming created from a start
on the writer
This object is used to control and monitor the active stream
Implementations§
Source§impl StreamingQuery
impl StreamingQuery
pub fn new( spark_session: Box<SparkSession>, write_stream: WriteStreamOperationStartResult, ) -> Self
pub fn id(&self) -> String
pub fn run_id(&self) -> String
pub fn name(&self) -> Option<String>
pub async fn await_termination( &self, timeout_ms: Option<i64>, ) -> Result<bool, SparkError>
pub async fn last_progress(&self) -> Result<Value, SparkError>
pub async fn recent_progress(&self) -> Result<Value, SparkError>
pub async fn is_active(&self) -> Result<bool, SparkError>
pub async fn stop(&self) -> Result<(), SparkError>
pub async fn process_all_available(&self) -> Result<(), SparkError>
pub async fn explain(&self, extended: Option<bool>) -> Result<(), SparkError>
pub async fn exception(&self) -> Result<String, SparkError>
pub async fn status(&self) -> Result<StatusResult, SparkError>
Trait Implementations§
Source§impl Clone for StreamingQuery
impl Clone for StreamingQuery
Source§fn clone(&self) -> StreamingQuery
fn clone(&self) -> StreamingQuery
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 Freeze for StreamingQuery
impl !RefUnwindSafe for StreamingQuery
impl Send for StreamingQuery
impl Sync for StreamingQuery
impl Unpin for StreamingQuery
impl !UnwindSafe 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