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§
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)