parquet::file::serialized_reader

Struct SerializedFileReader

Source
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>

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.

Source§

type Item = Result<Row, ParquetError>

The type of the elements being iterated over.
Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

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

Source§

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>,

Source§

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.
§

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

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T