pub trait PlanReduceRule<P: PlanVTable>:
Debug
+ Send
+ Sync
+ 'static {
// Required method
fn reduce(
&self,
plan: &Plan<P>,
session: &VortexSession,
) -> 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§
Sourcefn reduce(
&self,
plan: &Plan<P>,
session: &VortexSession,
) -> VortexResult<Option<PlanRef>>
fn reduce( &self, plan: &Plan<P>, session: &VortexSession, ) -> 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".