Skip to main content

PartitionedPlan

Trait PartitionedPlan 

Source
pub trait PartitionedPlan: PlanVTable {
    type Slot: Copy + Into<PlanSlot>;

    // Required method
    fn slot_dtype(scope: &DType, slot: Self::Slot) -> VortexResult<DType>;

    // Provided method
    fn partition(
        &self,
        scope: &DType,
        expr: &BoundExpression,
        session: &VortexSession,
    ) -> VortexResult<PartitionedExpression> { ... }
}
Expand description

A PartitionedPlan is a plan which has some logical meaning for its slots and allows partitioning an Expression over itself.

Required Associated Types§

Source

type Slot: Copy + Into<PlanSlot>

Each plan has slots which are numbers. This is the logical type for these numbers. For example, Pack has slots 0…n, first one is a validity. This type for Pack is therefore Slot { Validity, Field(usize) }.

Required Methods§

Source

fn slot_dtype(scope: &DType, slot: Self::Slot) -> VortexResult<DType>

Returns the logical dtype of a slot within scope.

Provided Methods§

Source

fn partition( &self, scope: &DType, expr: &BoundExpression, session: &VortexSession, ) -> VortexResult<PartitionedExpression>

Partitions an expression over this plan’s independent child slots.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§