pub struct PageIndex<T> {
pub min: Option<T>,
pub max: Option<T>,
pub null_count: Option<i64>,
pub repetition_level_histogram: Option<LevelHistogram>,
pub definition_level_histogram: Option<LevelHistogram>,
}
Expand description
Typed statistics for one data page
See NativeIndex
for more details
Fields§
§min: Option<T>
The minimum value, It is None when all values are null
max: Option<T>
The maximum value, It is None when all values are null
null_count: Option<i64>
Null values in the page
repetition_level_histogram: Option<LevelHistogram>
Repetition level histogram for the page
repetition_level_histogram[i]
is a count of how many values are at repetition level i
.
For example, repetition_level_histogram[0]
indicates how many rows the page contains.
definition_level_histogram: Option<LevelHistogram>
Definition level histogram for the page
definition_level_histogram[i]
is a count of how many values are at definition level i
.
For example, definition_level_histogram[max_definition_level]
indicates how many
non-null values are present in the page.
Implementations§
Source§impl<T> PageIndex<T>
impl<T> PageIndex<T>
Sourcepub fn min(&self) -> Option<&T>
pub fn min(&self) -> Option<&T>
Returns the minimum value in the page
It is None
when all values are null
Sourcepub fn max(&self) -> Option<&T>
pub fn max(&self) -> Option<&T>
Returns the maximum value in the page
It is None
when all values are null
Sourcepub fn null_count(&self) -> Option<i64>
pub fn null_count(&self) -> Option<i64>
Returns the number of null values in the page
Sourcepub fn repetition_level_histogram(&self) -> Option<&LevelHistogram>
pub fn repetition_level_histogram(&self) -> Option<&LevelHistogram>
Returns the repetition level histogram for the page
Sourcepub fn definition_level_histogram(&self) -> Option<&LevelHistogram>
pub fn definition_level_histogram(&self) -> Option<&LevelHistogram>
Returns the definition level histogram for the page
Trait Implementations§
Source§impl<T: ParquetValueType> HeapSize for PageIndex<T>
impl<T: ParquetValueType> HeapSize for PageIndex<T>
impl<T: Eq> Eq for PageIndex<T>
impl<T> StructuralPartialEq for PageIndex<T>
Auto Trait Implementations§
impl<T> Freeze for PageIndex<T>where
T: Freeze,
impl<T> RefUnwindSafe for PageIndex<T>where
T: RefUnwindSafe,
impl<T> Send for PageIndex<T>where
T: Send,
impl<T> Sync for PageIndex<T>where
T: Sync,
impl<T> Unpin for PageIndex<T>where
T: Unpin,
impl<T> UnwindSafe for PageIndex<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
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>
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>
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