Struct parquet::file::serialized_reader::SerializedFileReader

source ·
pub struct SerializedFileReader<R: ChunkReader> { /* private fields */ }
Expand description

A serialized implementation for Parquet FileReader.

Implementations§

source§

impl<R: 'static + ChunkReader> SerializedFileReader<R>

source

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.

source

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>

source§

fn metadata(&self) -> &ParquetMetaData

Get metadata information about this file.
source§

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 + '_>>

Get the ith row group reader. Note this doesn’t do bound check.
source§

fn get_row_iter(&self, projection: Option<SchemaType>) -> Result<RowIter<'_>>

Get an iterator over the row in this file, see RowIter for caveats. Read more
source§

impl IntoIterator for SerializedFileReader<File>

Conversion into a RowIter using the full file schema over all row groups.

§

type Item = Result<Row, ParquetError>

The type of the elements being iterated over.
§

type IntoIter = RowIter<'static>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl TryFrom<&Path> for SerializedFileReader<File>

§

type Error = ParquetError

The type returned in the event of a conversion error.
source§

fn try_from(path: &Path) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<&str> for SerializedFileReader<File>

§

type Error = ParquetError

The type returned in the event of a conversion error.
source§

fn try_from(path: &str) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<File> for SerializedFileReader<File>

§

type Error = ParquetError

The type returned in the event of a conversion error.
source§

fn try_from(file: File) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<String> for SerializedFileReader<File>

§

type Error = ParquetError

The type returned in the event of a conversion error.
source§

fn try_from(path: String) -> Result<Self>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,