pub struct CachedParquetFileReader {
pub file_metrics: ParquetFileMetrics,
store: Arc<dyn ObjectStore>,
pub inner: ParquetObjectReader,
partitioned_file: PartitionedFile,
metadata_cache: Arc<dyn FileMetadataCache<Extra = ObjectMeta>>,
metadata_size_hint: Option<usize>,
}Expand description
Implements [AsyncFileReader] for a Parquet file in object storage. Reads the file metadata
from the FileMetadataCache, if available, otherwise reads it directly from the file and then
updates the cache.
Fields§
§file_metrics: ParquetFileMetrics§store: Arc<dyn ObjectStore>§inner: ParquetObjectReader§partitioned_file: PartitionedFile§metadata_cache: Arc<dyn FileMetadataCache<Extra = ObjectMeta>>§metadata_size_hint: Option<usize>Trait Implementations§
Source§impl AsyncFileReader for CachedParquetFileReader
impl AsyncFileReader for CachedParquetFileReader
Source§fn get_bytes(
&mut self,
range: Range<u64>,
) -> Pin<Box<dyn Future<Output = Result<Bytes, ParquetError>> + Send + '_>>
fn get_bytes( &mut self, range: Range<u64>, ) -> Pin<Box<dyn Future<Output = Result<Bytes, ParquetError>> + Send + '_>>
Retrieve the bytes in
rangeAuto Trait Implementations§
impl Freeze for CachedParquetFileReader
impl !RefUnwindSafe for CachedParquetFileReader
impl Send for CachedParquetFileReader
impl Sync for CachedParquetFileReader
impl Unpin for CachedParquetFileReader
impl !UnwindSafe for CachedParquetFileReader
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