Skip to main content

ResultSink

Trait ResultSink 

Source
pub trait ResultSink {
    // Required methods
    fn no_result(&mut self, rows_affected: Option<u64>) -> Result<()>;
    fn begin(&mut self, schema: SchemaRef) -> Result<()>;
    fn batch(&mut self, batch: RecordBatch) -> Result<bool>;
}
Expand description

Where a source pushes the outcome of execute: either no_result, or begin followed by any number of batch calls.

Required Methods§

Source

fn no_result(&mut self, rows_affected: Option<u64>) -> Result<()>

Source

fn begin(&mut self, schema: SchemaRef) -> Result<()>

Source

fn batch(&mut self, batch: RecordBatch) -> Result<bool>

Returns false once the row limit is reached: stop producing batches.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§