pub trait Planner: IoConsumer + Send {
// Required methods
fn state(&self) -> State;
fn compute(&mut self) -> VortexResult<PlannerOutput>;
}Expand description
A planner decides which work is needed.
It privately owns cursors, selections, and pending inputs. compute() advances CPU work
when state() reports NeedsCompute and may produce one child, one IO batch, a checkpoint,
or finish. A planner moves between threads with the run that owns it.
Required Methods§
Sourcefn compute(&mut self) -> VortexResult<PlannerOutput>
fn compute(&mut self) -> VortexResult<PlannerOutput>
Advances CPU work. Only called when state is NeedsCompute.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".