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§
Required Methods§
Sourcefn slot_dtype(scope: &DType, slot: Self::Slot) -> VortexResult<DType>
fn slot_dtype(scope: &DType, slot: Self::Slot) -> VortexResult<DType>
Returns the logical dtype of a slot within scope.
Provided Methods§
Sourcefn partition(
&self,
scope: &DType,
expr: &BoundExpression,
session: &VortexSession,
) -> VortexResult<PartitionedExpression>
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".