pub struct SerializedRowGroupReader<'a, R: ChunkReader> {
chunk_reader: Arc<R>,
metadata: &'a RowGroupMetaData,
offset_index: Option<&'a [OffsetIndexMetaData]>,
props: ReaderPropertiesPtr,
bloom_filters: Vec<Option<Sbbf>>,
}
Expand description
A serialized implementation for Parquet RowGroupReader
.
Fields§
§chunk_reader: Arc<R>
§metadata: &'a RowGroupMetaData
§offset_index: Option<&'a [OffsetIndexMetaData]>
§props: ReaderPropertiesPtr
§bloom_filters: Vec<Option<Sbbf>>
Implementations§
Source§impl<'a, R: ChunkReader> SerializedRowGroupReader<'a, R>
impl<'a, R: ChunkReader> SerializedRowGroupReader<'a, R>
Sourcepub fn new(
chunk_reader: Arc<R>,
metadata: &'a RowGroupMetaData,
offset_index: Option<&'a [OffsetIndexMetaData]>,
props: ReaderPropertiesPtr,
) -> Result<Self>
pub fn new( chunk_reader: Arc<R>, metadata: &'a RowGroupMetaData, offset_index: Option<&'a [OffsetIndexMetaData]>, props: ReaderPropertiesPtr, ) -> Result<Self>
Creates new row group reader from a file, row group metadata and custom config.
Trait Implementations§
Source§impl<R: 'static + ChunkReader> RowGroupReader for SerializedRowGroupReader<'_, R>
impl<R: 'static + ChunkReader> RowGroupReader for SerializedRowGroupReader<'_, R>
Source§fn get_column_bloom_filter(&self, i: usize) -> Option<&Sbbf>
fn get_column_bloom_filter(&self, i: usize) -> Option<&Sbbf>
get bloom filter for the i
th column
Source§fn metadata(&self) -> &RowGroupMetaData
fn metadata(&self) -> &RowGroupMetaData
Get metadata information about this row group.
Source§fn num_columns(&self) -> usize
fn num_columns(&self) -> usize
Get the total number of column chunks in this row group.
Source§fn get_column_page_reader(&self, i: usize) -> Result<Box<dyn PageReader>>
fn get_column_page_reader(&self, i: usize) -> Result<Box<dyn PageReader>>
Get page reader for the
i
th column chunk.Source§fn get_row_iter(&self, projection: Option<SchemaType>) -> Result<RowIter<'_>>
fn get_row_iter(&self, projection: Option<SchemaType>) -> Result<RowIter<'_>>
Source§fn get_column_reader(&self, i: usize) -> Result<ColumnReader>
fn get_column_reader(&self, i: usize) -> Result<ColumnReader>
Get value reader for the
i
th column chunk.Auto Trait Implementations§
impl<'a, R> Freeze for SerializedRowGroupReader<'a, R>
impl<'a, R> RefUnwindSafe for SerializedRowGroupReader<'a, R>where
R: RefUnwindSafe,
impl<'a, R> Send for SerializedRowGroupReader<'a, R>
impl<'a, R> Sync for SerializedRowGroupReader<'a, R>
impl<'a, R> Unpin for SerializedRowGroupReader<'a, R>
impl<'a, R> UnwindSafe for SerializedRowGroupReader<'a, R>where
R: RefUnwindSafe,
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> 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