Skip to main content

PlanReduceRule

Trait PlanReduceRule 

Source
pub trait PlanReduceRule<P: PlanVTable>:
    Debug
    + Send
    + Sync
    + 'static {
    // Required method
    fn reduce(&self, plan: &Plan<P>) -> VortexResult<Option<PlanRef>>;
}
Expand description

A rewrite over one concrete plan operator.

Rules return one rewrite without recursively optimizing the replacement. The plan optimizer owns traversal and drives further rewrites.

Required Methods§

Source

fn reduce(&self, plan: &Plan<P>) -> VortexResult<Option<PlanRef>>

Attempts to replace plan.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§