Struct polars_io::parquet::read::ParquetAsyncReader
source · pub struct ParquetAsyncReader { /* private fields */ }
Available on crate features
parquet
and cloud
only.Expand description
A Parquet reader on top of the async object_store API. Only the batch reader is implemented since parquet files on cloud storage tend to be big and slow to access.
Implementations§
source§impl ParquetAsyncReader
impl ParquetAsyncReader
pub async fn from_uri( uri: &str, cloud_options: Option<&CloudOptions>, schema: Option<ArrowSchemaRef>, metadata: Option<FileMetaDataRef> ) -> PolarsResult<ParquetAsyncReader>
pub async fn schema(&mut self) -> PolarsResult<ArrowSchemaRef>
pub async fn num_rows(&mut self) -> PolarsResult<usize>
pub fn with_n_rows(self, n_rows: Option<usize>) -> Self
pub fn with_row_index(self, row_index: Option<RowIndex>) -> Self
pub fn set_rechunk(self, rechunk: bool) -> Self
pub fn with_projection(self, projection: Option<Vec<usize>>) -> Self
pub fn with_predicate(self, predicate: Option<Arc<dyn PhysicalIoExpr>>) -> Self
sourcepub fn use_statistics(self, toggle: bool) -> Self
pub fn use_statistics(self, toggle: bool) -> Self
Use statistics in the parquet to determine if pages can be skipped from reading.
pub fn with_hive_partition_columns(self, columns: Option<Vec<Series>>) -> Self
pub fn read_parallel(self, parallel: ParallelStrategy) -> Self
pub async fn batched( self, chunk_size: usize ) -> PolarsResult<BatchedParquetReader>
pub async fn get_metadata(&mut self) -> PolarsResult<&FileMetaDataRef>
pub async fn finish(self) -> PolarsResult<DataFrame>
Auto Trait Implementations§
impl Freeze for ParquetAsyncReader
impl !RefUnwindSafe for ParquetAsyncReader
impl Send for ParquetAsyncReader
impl Sync for ParquetAsyncReader
impl Unpin for ParquetAsyncReader
impl !UnwindSafe for ParquetAsyncReader
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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