pub struct PrimitiveColumnIndex<T> { /* private fields */ }Expand description
Column index for primitive types
Implementations§
Source§impl<T> PrimitiveColumnIndex<T>
impl<T> PrimitiveColumnIndex<T>
Sourcepub fn min_values(&self) -> &[T]
pub fn min_values(&self) -> &[T]
Returns an array containing the min values for each page.
Values in the returned slice are only valid if ColumnIndex::is_null_page()
is false for the same index.
Sourcepub fn max_values(&self) -> &[T]
pub fn max_values(&self) -> &[T]
Returns an array containing the max values for each page.
Values in the returned slice are only valid if ColumnIndex::is_null_page()
is false for the same index.
Sourcepub fn min_values_iter(&self) -> impl Iterator<Item = Option<&T>>
pub fn min_values_iter(&self) -> impl Iterator<Item = Option<&T>>
Returns an iterator over the min values.
Values may be None when ColumnIndex::is_null_page() is true.
Sourcepub fn max_values_iter(&self) -> impl Iterator<Item = Option<&T>>
pub fn max_values_iter(&self) -> impl Iterator<Item = Option<&T>>
Returns an iterator over the max values.
Values may be None when ColumnIndex::is_null_page() is true.
Methods from Deref<Target = ColumnIndex>§
Sourcepub fn null_count(&self, idx: usize) -> Option<i64>
pub fn null_count(&self, idx: usize) -> Option<i64>
Returns the number of null values in the page indexed by idx
Returns None if no null counts have been set in the index
Sourcepub fn repetition_level_histogram(&self, idx: usize) -> Option<&[i64]>
pub fn repetition_level_histogram(&self, idx: usize) -> Option<&[i64]>
Returns the repetition level histogram for the page indexed by idx
Sourcepub fn definition_level_histogram(&self, idx: usize) -> Option<&[i64]>
pub fn definition_level_histogram(&self, idx: usize) -> Option<&[i64]>
Returns the definition level histogram for the page indexed by idx
Sourcepub fn is_null_page(&self, idx: usize) -> bool
pub fn is_null_page(&self, idx: usize) -> bool
Returns whether the page indexed by idx consists of all null values
Trait Implementations§
Source§impl<T: Clone> Clone for PrimitiveColumnIndex<T>
impl<T: Clone> Clone for PrimitiveColumnIndex<T>
Source§fn clone(&self) -> PrimitiveColumnIndex<T>
fn clone(&self) -> PrimitiveColumnIndex<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more