Skip to main content

PartitionRule

Trait PartitionRule 

Source
pub trait PartitionRule:
    Send
    + Sync
    + 'static {
    type Plan: PartitionedPlan;

    // Required method
    fn apply(
        &self,
        slots: &Slots<'_, Self::Plan>,
        node: &BoundExpression,
    ) -> VortexResult<Option<Expression>>;
}
Expand description

A rule describing which plan slots an expression reads.

Required Associated Types§

Source

type Plan: PartitionedPlan

The plan whose slots this rule describes.

Required Methods§

Source

fn apply( &self, slots: &Slots<'_, Self::Plan>, node: &BoundExpression, ) -> VortexResult<Option<Expression>>

For a plan and an expression, answer which plan’s slots does this expression use.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§