pub struct OutputCollector { /* private fields */ }Expand description
Accumulates batches and log messages for one streaming iteration.
Implementations§
Source§impl OutputCollector
impl OutputCollector
Sourcepub fn emit(&mut self, batch: RecordBatch) -> Result<()>
pub fn emit(&mut self, batch: RecordBatch) -> Result<()>
Emit a data batch. Schema must match self.schema() exactly.
Sourcepub fn emit_with_metadata(
&mut self,
batch: RecordBatch,
metadata: Metadata,
) -> Result<()>
pub fn emit_with_metadata( &mut self, batch: RecordBatch, metadata: Metadata, ) -> Result<()>
Emit a data batch with per-batch custom metadata (e.g. VGI’s
vgi_batch_index / vgi_partition_values#b64 ordering tags).
pub fn finished(&self) -> bool
Sourcepub fn client_log(&mut self, level: LogLevel, message: impl Into<String>)
pub fn client_log(&mut self, level: LogLevel, message: impl Into<String>)
Append a client-directed log message.
Sourcepub fn client_log_with(&mut self, msg: LogMessage)
pub fn client_log_with(&mut self, msg: LogMessage)
Append a client-directed log message with extras.
pub fn is_producer(&self) -> bool
Auto Trait Implementations§
impl !RefUnwindSafe for OutputCollector
impl !UnwindSafe for OutputCollector
impl Freeze for OutputCollector
impl Send for OutputCollector
impl Sync for OutputCollector
impl Unpin for OutputCollector
impl UnsafeUnpin for OutputCollector
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