pub struct SerializedFileReader<R: ChunkReader> {
chunk_reader: Arc<R>,
metadata: Arc<ParquetMetaData>,
props: ReaderPropertiesPtr,
}
Expand description
A serialized implementation for Parquet FileReader
.
Fields§
§chunk_reader: Arc<R>
§metadata: Arc<ParquetMetaData>
§props: ReaderPropertiesPtr
Implementations§
Source§impl<R: 'static + ChunkReader> SerializedFileReader<R>
impl<R: 'static + ChunkReader> SerializedFileReader<R>
Sourcepub fn new(chunk_reader: R) -> Result<Self>
pub fn new(chunk_reader: R) -> Result<Self>
Creates file reader from a Parquet file. Returns error if Parquet file does not exist or is corrupt.
Sourcepub fn new_with_options(chunk_reader: R, options: ReadOptions) -> Result<Self>
pub fn new_with_options(chunk_reader: R, options: ReadOptions) -> Result<Self>
Creates file reader from a Parquet file with read options. Returns error if Parquet file does not exist or is corrupt.
Trait Implementations§
Source§impl<R: 'static + ChunkReader> FileReader for SerializedFileReader<R>
impl<R: 'static + ChunkReader> FileReader for SerializedFileReader<R>
Source§fn metadata(&self) -> &ParquetMetaData
fn metadata(&self) -> &ParquetMetaData
Get metadata information about this file.
Source§fn num_row_groups(&self) -> usize
fn num_row_groups(&self) -> usize
Get the total number of row groups for this file.
Source§fn get_row_group(&self, i: usize) -> Result<Box<dyn RowGroupReader + '_>>
fn get_row_group(&self, i: usize) -> Result<Box<dyn RowGroupReader + '_>>
Get the
i
th row group reader. Note this doesn’t do bound check.Source§fn get_row_iter(&self, projection: Option<SchemaType>) -> Result<RowIter<'_>>
fn get_row_iter(&self, projection: Option<SchemaType>) -> Result<RowIter<'_>>
Source§impl IntoIterator for SerializedFileReader<File>
impl IntoIterator for SerializedFileReader<File>
Conversion into a RowIter
using the full file schema over all row groups.
Auto Trait Implementations§
impl<R> Freeze for SerializedFileReader<R>
impl<R> RefUnwindSafe for SerializedFileReader<R>where
R: RefUnwindSafe,
impl<R> Send for SerializedFileReader<R>
impl<R> Sync for SerializedFileReader<R>
impl<R> Unpin for SerializedFileReader<R>
impl<R> UnwindSafe for SerializedFileReader<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