Skip to main content

Operator

Trait Operator 

Source
pub trait Operator: Send {
    // Required method
    fn compute(&mut self, input: Input, cx: &mut Cx<'_>) -> VortexResult<Step>;
}
Expand description

Computes batches without blocking, either as a source or as a stage transforming input.

Required Methods§

Source

fn compute(&mut self, input: Input, cx: &mut Cx<'_>) -> VortexResult<Step>

Computes one output. Step::More requests another call with Input::None before any new input is supplied. Step::End and Step::Final finish the current input; after Input::End, they finish the stage as well.

Sources receive only Input::None. Their first call and each call after Step::Final follow Source::ready; Step::End finishes the source.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§