pub struct ColumnIndex {
pub(crate) null_pages: Vec<bool>,
pub(crate) boundary_order: BoundaryOrder,
pub(crate) null_counts: Option<Vec<i64>>,
pub(crate) repetition_level_histograms: Option<Vec<i64>>,
pub(crate) definition_level_histograms: Option<Vec<i64>>,
}
Expand description
Common bits of the column index
Fields§
§null_pages: Vec<bool>
§boundary_order: BoundaryOrder
§null_counts: Option<Vec<i64>>
§repetition_level_histograms: Option<Vec<i64>>
§definition_level_histograms: Option<Vec<i64>>
Implementations§
Source§impl ColumnIndex
impl 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 Clone for ColumnIndex
impl Clone for ColumnIndex
Source§fn clone(&self) -> ColumnIndex
fn clone(&self) -> ColumnIndex
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ColumnIndex
impl Debug for ColumnIndex
Source§impl HeapSize for ColumnIndex
impl HeapSize for ColumnIndex
Source§impl PartialEq for ColumnIndex
impl PartialEq for ColumnIndex
impl StructuralPartialEq for ColumnIndex
Auto Trait Implementations§
impl Freeze for ColumnIndex
impl RefUnwindSafe for ColumnIndex
impl Send for ColumnIndex
impl Sync for ColumnIndex
impl Unpin for ColumnIndex
impl UnwindSafe for ColumnIndex
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