pub struct RowGroupIndex { /* private fields */ }Expand description
Row index for a single column in a stripe
Only primitive columns have row indexes. Compound types (struct/list/map) delegate to their child columns.
Implementations§
Source§impl RowGroupIndex
impl RowGroupIndex
pub fn new( entries: Vec<RowGroupEntry>, rows_per_group: usize, column_index: usize, ) -> Self
Sourcepub fn num_row_groups(&self) -> usize
pub fn num_row_groups(&self) -> usize
Get the number of row groups in this index
Sourcepub fn rows_per_group(&self) -> usize
pub fn rows_per_group(&self) -> usize
Get the number of rows per row group
Sourcepub fn column_index(&self) -> usize
pub fn column_index(&self) -> usize
Get the column index this row index belongs to
Sourcepub fn row_group_stats(&self, row_group_idx: usize) -> Option<&ColumnStatistics>
pub fn row_group_stats(&self, row_group_idx: usize) -> Option<&ColumnStatistics>
Get statistics for a specific row group
Sourcepub fn entries(&self) -> impl Iterator<Item = &RowGroupEntry>
pub fn entries(&self) -> impl Iterator<Item = &RowGroupEntry>
Get an iterator over row group entries
Sourcepub fn entry(&self, row_group_idx: usize) -> Option<&RowGroupEntry>
pub fn entry(&self, row_group_idx: usize) -> Option<&RowGroupEntry>
Get a specific row group entry
Trait Implementations§
Source§impl Clone for RowGroupIndex
impl Clone for RowGroupIndex
Source§fn clone(&self) -> RowGroupIndex
fn clone(&self) -> RowGroupIndex
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 moreAuto Trait Implementations§
impl Freeze for RowGroupIndex
impl RefUnwindSafe for RowGroupIndex
impl Send for RowGroupIndex
impl Sync for RowGroupIndex
impl Unpin for RowGroupIndex
impl UnwindSafe for RowGroupIndex
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