pub struct CachedParquetMetaData(Arc<ParquetMetaData>);Expand description
Wrapper to implement FileMetadata for [ParquetMetaData].
Tuple Fields§
§0: Arc<ParquetMetaData>Implementations§
Source§impl CachedParquetMetaData
impl CachedParquetMetaData
pub fn new(metadata: Arc<ParquetMetaData>) -> CachedParquetMetaData
pub fn parquet_metadata(&self) -> &Arc<ParquetMetaData>
Trait Implementations§
Source§impl FileMetadata for CachedParquetMetaData
impl FileMetadata for CachedParquetMetaData
Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Returns the file metadata as
Any so that it can be downcast to a specific
implementation.Source§fn memory_size(&self) -> usize
fn memory_size(&self) -> usize
Returns the size of the metadata in bytes.
Source§fn extra_info(&self) -> HashMap<String, String>
fn extra_info(&self) -> HashMap<String, String>
Returns extra information about this entry (used by
FileMetadataCache::list_entries).Auto Trait Implementations§
impl Freeze for CachedParquetMetaData
impl !RefUnwindSafe for CachedParquetMetaData
impl Send for CachedParquetMetaData
impl Sync for CachedParquetMetaData
impl Unpin for CachedParquetMetaData
impl !UnwindSafe for CachedParquetMetaData
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