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
impl ZonedPlan
Sourcepub fn from_slots(
dtype: DType,
row_count: u64,
slots: PlanSlots,
zone_len: u64,
aggregate_fns: Arc<[AggregateFnRef]>,
) -> Self
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.
Sourcepub fn new(
data: PlanRef,
zones: PlanRef,
zone_len: u64,
aggregate_fns: Arc<[AggregateFnRef]>,
) -> Self
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.
Sourcepub fn aggregate_fns(&self) -> &Arc<[AggregateFnRef]> ⓘ
pub fn aggregate_fns(&self) -> &Arc<[AggregateFnRef]> ⓘ
Returns the aggregate functions whose results the zone table stores.
Sourcepub fn pruning_column_dtype(&self) -> Option<&DType>
pub fn pruning_column_dtype(&self) -> Option<&DType>
Returns the dtype of the column the zones summarise, when this is a pruning plan.
Sourcepub fn data_plan(&self) -> VortexResult<Option<PlanRef>>
pub fn data_plan(&self) -> VortexResult<Option<PlanRef>>
Returns the plan producing the summarised data, unless this is a pruning plan.
Sourcepub fn zones_plan(&self) -> VortexResult<PlanRef>
pub fn zones_plan(&self) -> VortexResult<PlanRef>
Returns the plan producing the zone statistics.
Sourcepub fn is_pruning(&self) -> bool
pub fn is_pruning(&self) -> bool
Returns whether this plan represents a zone-backed pruning proof.
Sourcepub fn pruning_expression(&self) -> Option<&BoundExpression>
pub fn pruning_expression(&self) -> Option<&BoundExpression>
Returns the abstract pruning proof carried by this plan, when present.