pub struct ZoneMap { /* private fields */ }Expand description
A zone map containing statistics for a column. Each row of the zone map corresponds to a chunk of the column.
Note that it’s possible for the zone map to have no statistics.
Implementations§
Source§impl ZoneMap
impl ZoneMap
Sourcepub fn try_new(
column_dtype: DType,
array: StructArray,
stats: Arc<[Stat]>,
) -> VortexResult<Self>
pub fn try_new( column_dtype: DType, array: StructArray, stats: Arc<[Stat]>, ) -> VortexResult<Self>
Create StatsTable of given column_dtype from given array. Validates that the array matches expected structure for given list of stats
Sourcepub fn unchecked_new(array: StructArray, stats: Arc<[Stat]>) -> Self
pub fn unchecked_new(array: StructArray, stats: Arc<[Stat]>) -> Self
Create StatsTable without validating return array against expected stats
Sourcepub fn dtype_for_stats_table(
column_dtype: &DType,
present_stats: &[Stat],
) -> DType
pub fn dtype_for_stats_table( column_dtype: &DType, present_stats: &[Stat], ) -> DType
Returns the DType of the statistics table given a set of statistics and column DType.
Sourcepub fn array(&self) -> &StructArray
pub fn array(&self) -> &StructArray
The struct array backing the zone map
Sourcepub fn present_stats(&self) -> &Arc<[Stat]>
pub fn present_stats(&self) -> &Arc<[Stat]>
The statistics that are included in the table.
Sourcepub fn to_stats_set(&self, stats: &[Stat]) -> VortexResult<StatsSet>
pub fn to_stats_set(&self, stats: &[Stat]) -> VortexResult<StatsSet>
Return an aggregated stats set for the table.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ZoneMap
impl !RefUnwindSafe for ZoneMap
impl Send for ZoneMap
impl Sync for ZoneMap
impl Unpin for ZoneMap
impl !UnwindSafe for ZoneMap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more