Skip to main content

ZonedPlan

Type Alias ZonedPlan 

Source
pub type ZonedPlan = Plan<Zoned>;
Expand description

A plan that pairs data with its zone statistics or represents a zone-backed pruning proof.

Aliased Type§

pub struct ZonedPlan { /* private fields */ }

Implementations§

Source§

impl ZonedPlan

Source

pub fn from_slots( dtype: DType, row_count: u64, slots: PlanSlots, zone_len: u64, aggregate_fns: Arc<[AggregateFnRef]>, ) -> Self

Pairs data and statistics slots with their zone length and aggregate functions.

Source

pub fn new( data: PlanRef, zones: PlanRef, zone_len: u64, aggregate_fns: Arc<[AggregateFnRef]>, ) -> Self

Creates a zoned plan over data summarised by zones of zone_len rows each, whose fields hold the results of aggregate_fns.

Source

pub fn zone_len(&self) -> u64

Returns the number of rows each zone summarises.

Source

pub fn aggregate_fns(&self) -> &Arc<[AggregateFnRef]> ⓘ

Returns the aggregate functions whose results the zone table stores.

Source

pub fn pruning_column_dtype(&self) -> Option<&DType>

Returns the dtype of the column the zones summarise, when this is a pruning plan.

Source

pub fn data_plan(&self) -> VortexResult<Option<PlanRef>>

Returns the plan producing the summarised data, unless this is a pruning plan.

Source

pub fn zones_plan(&self) -> VortexResult<PlanRef>

Returns the plan producing the zone statistics.

Source

pub fn is_pruning(&self) -> bool

Returns whether this plan represents a zone-backed pruning proof.

Source

pub fn pruning_expression(&self) -> Option<&BoundExpression>

Returns the abstract pruning proof carried by this plan, when present.