pub struct StripeRowIndex { /* private fields */ }Expand description
Row indexes for all columns in a stripe
This structure provides access to row group statistics for all primitive columns in a stripe, enabling row group-level filtering.
Implementations§
Source§impl StripeRowIndex
impl StripeRowIndex
pub fn new( columns: HashMap<usize, RowGroupIndex>, total_rows: usize, rows_per_group: usize, ) -> Self
Sourcepub fn column(&self, column_idx: usize) -> Option<&RowGroupIndex>
pub fn column(&self, column_idx: usize) -> Option<&RowGroupIndex>
Get the row group index for a column
Sourcepub fn num_row_groups(&self) -> usize
pub fn num_row_groups(&self) -> usize
Get the number of row groups in this stripe
Sourcepub fn row_group_stats(
&self,
column_idx: usize,
row_group_idx: usize,
) -> Option<&ColumnStatistics>
pub fn row_group_stats( &self, column_idx: usize, row_group_idx: usize, ) -> Option<&ColumnStatistics>
Get statistics for a specific row group and column
Sourcepub fn total_rows(&self) -> usize
pub fn total_rows(&self) -> usize
Get the total number of rows in this stripe
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_indices(&self) -> impl Iterator<Item = usize> + '_
pub fn column_indices(&self) -> impl Iterator<Item = usize> + '_
Get an iterator over all column indices that have row indexes
Trait Implementations§
Source§impl Clone for StripeRowIndex
impl Clone for StripeRowIndex
Source§fn clone(&self) -> StripeRowIndex
fn clone(&self) -> StripeRowIndex
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 StripeRowIndex
impl RefUnwindSafe for StripeRowIndex
impl Send for StripeRowIndex
impl Sync for StripeRowIndex
impl Unpin for StripeRowIndex
impl UnwindSafe for StripeRowIndex
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