Skip to main content

RowGroups

Trait RowGroups 

Source
pub trait RowGroups {
    // Required methods
    fn num_rows(&self) -> usize;
    fn column_chunks(&self, i: usize) -> Result<Box<dyn PageIterator>>;
    fn row_groups(&self) -> Box<dyn Iterator<Item = &RowGroupMetaData> + '_>;
    fn metadata(&self) -> &ParquetMetaData;
}
Expand description

Interface for reading data pages from the columns of one or more RowGroups.

Required Methods§

Source

fn num_rows(&self) -> usize

Get the number of rows in this collection

Source

fn column_chunks(&self, i: usize) -> Result<Box<dyn PageIterator>>

Returns a PageIterator for all pages in the specified column chunk across all row groups in this collection.

Source

fn row_groups(&self) -> Box<dyn Iterator<Item = &RowGroupMetaData> + '_>

Returns an iterator over the row groups in this collection

Note this may not include all row groups in Self::metadata.

Source

fn metadata(&self) -> &ParquetMetaData

Returns the parquet metadata

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl RowGroups for Arc<dyn FileReader>

Source§

fn num_rows(&self) -> usize

Source§

fn column_chunks(&self, column_index: usize) -> Result<Box<dyn PageIterator>>

Source§

fn row_groups(&self) -> Box<dyn Iterator<Item = &RowGroupMetaData> + '_>

Source§

fn metadata(&self) -> &ParquetMetaData

Implementors§