Struct deltalake::datafusion::parquet::arrow::async_reader::MetadataLoader
source · pub struct MetadataLoader<F> { /* private fields */ }
Expand description
An asynchronous interface to load ParquetMetaData
from an async source
Implementations§
source§impl<F> MetadataLoader<F>where
F: MetadataFetch,
impl<F> MetadataLoader<F>where
F: MetadataFetch,
sourcepub async fn load(
fetch: F,
file_size: usize,
prefetch: Option<usize>
) -> Result<MetadataLoader<F>, ParquetError>
pub async fn load( fetch: F, file_size: usize, prefetch: Option<usize> ) -> Result<MetadataLoader<F>, ParquetError>
Create a new MetadataLoader
by reading the footer information
See fetch_parquet_metadata
for the meaning of the individual parameters
sourcepub fn new(fetch: F, metadata: ParquetMetaData) -> MetadataLoader<F>
pub fn new(fetch: F, metadata: ParquetMetaData) -> MetadataLoader<F>
Create a new MetadataLoader
from an existing ParquetMetaData
sourcepub async fn load_page_index(
&mut self,
column_index: bool,
offset_index: bool
) -> Result<(), ParquetError>
pub async fn load_page_index( &mut self, column_index: bool, offset_index: bool ) -> Result<(), ParquetError>
Loads the page index, if any
column_index
: if true will load column indexoffset_index
: if true will load offset index
sourcepub fn finish(self) -> ParquetMetaData
pub fn finish(self) -> ParquetMetaData
Returns the finished ParquetMetaData
Auto Trait Implementations§
impl<F> !Freeze for MetadataLoader<F>
impl<F> RefUnwindSafe for MetadataLoader<F>where
F: RefUnwindSafe,
impl<F> Send for MetadataLoader<F>where
F: Send,
impl<F> Sync for MetadataLoader<F>where
F: Sync,
impl<F> Unpin for MetadataLoader<F>where
F: Unpin,
impl<F> UnwindSafe for MetadataLoader<F>where
F: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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 moreCreates a shared type from an unshared type.