Struct parquet::arrow::arrow_reader::ArrowReaderMetadata
source · pub struct ArrowReaderMetadata { /* private fields */ }
Expand description
The cheaply clone-able metadata necessary to construct a ArrowReaderBuilder
This allows loading the metadata for a file once and then using this to construct multiple separate readers, for example, to distribute readers across multiple threads
Implementations§
source§impl ArrowReaderMetadata
impl ArrowReaderMetadata
sourcepub fn load<T: ChunkReader>(
reader: &T,
options: ArrowReaderOptions,
) -> Result<Self>
pub fn load<T: ChunkReader>( reader: &T, options: ArrowReaderOptions, ) -> Result<Self>
Loads ArrowReaderMetadata
from the provided ChunkReader
See ParquetRecordBatchReaderBuilder::new_with_metadata
for how this can be used
pub fn try_new( metadata: Arc<ParquetMetaData>, options: ArrowReaderOptions, ) -> Result<Self>
sourcepub fn metadata(&self) -> &Arc<ParquetMetaData>
pub fn metadata(&self) -> &Arc<ParquetMetaData>
Returns a reference to the ParquetMetaData
for this parquet file
sourcepub fn parquet_schema(&self) -> &SchemaDescriptor
pub fn parquet_schema(&self) -> &SchemaDescriptor
Returns the parquet SchemaDescriptor
for this parquet file
source§impl ArrowReaderMetadata
impl ArrowReaderMetadata
sourcepub async fn load_async<T: AsyncFileReader>(
input: &mut T,
options: ArrowReaderOptions,
) -> Result<Self>
pub async fn load_async<T: AsyncFileReader>( input: &mut T, options: ArrowReaderOptions, ) -> Result<Self>
Returns a new ArrowReaderMetadata
for this builder
See ParquetRecordBatchStreamBuilder::new_with_metadata
for how this can be used
Trait Implementations§
source§impl Clone for ArrowReaderMetadata
impl Clone for ArrowReaderMetadata
source§fn clone(&self) -> ArrowReaderMetadata
fn clone(&self) -> ArrowReaderMetadata
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ArrowReaderMetadata
impl RefUnwindSafe for ArrowReaderMetadata
impl Send for ArrowReaderMetadata
impl Sync for ArrowReaderMetadata
impl Unpin for ArrowReaderMetadata
impl UnwindSafe for ArrowReaderMetadata
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