Skip to main content

Planner

Trait Planner 

Source
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§

Source

fn state(&self) -> State

Reports what the planner needs next without doing work.

Source

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".

Implementors§