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§
Sourcefn compute(&mut self, input: Input, cx: &mut Cx<'_>) -> VortexResult<Step>
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".