Skip to main content

Sink

Trait Sink 

Source
pub trait Sink: Send + Sync {
    // Required methods
    fn consume(&mut self, chunk: DataChunk) -> Result<bool, OperatorError>;
    fn finalize(&mut self) -> Result<(), OperatorError>;
    fn name(&self) -> &'static str;
}
Expand description

Sink that receives output from operators.

Sinks consume data chunks produced by the pipeline.

Required Methods§

Source

fn consume(&mut self, chunk: DataChunk) -> Result<bool, OperatorError>

Consume a chunk of data.

Returns Ok(true) to continue, Ok(false) to signal early termination.

Source

fn finalize(&mut self) -> Result<(), OperatorError>

Called when all input has been processed.

Source

fn name(&self) -> &'static str

Name of this sink for debugging.

Implementors§

Source§

impl Sink for graphos_core::execution::parallel::CollectorSink

Source§

impl Sink for graphos_core::execution::sink::CollectorSink

Source§

impl Sink for CountingSink

Source§

impl Sink for LimitingSink

Source§

impl Sink for MaterializingSink

Source§

impl Sink for NullSink

Source§

impl Sink for ChunkCollector