pub struct CachedParquetFileReader {
pub file_metrics: ParquetFileMetrics,
pub inner: ParquetObjectReader,
/* private fields */
}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§inner: ParquetObjectReaderImplementations§
Source§impl CachedParquetFileReader
impl CachedParquetFileReader
pub fn new( file_metrics: ParquetFileMetrics, store: Arc<dyn ObjectStore>, inner: ParquetObjectReader, partitioned_file: PartitionedFile, metadata_cache: Arc<dyn FileMetadataCache>, metadata_size_hint: Option<usize>, ) -> Self
Trait Implementations§
Source§impl AsyncFileReader for CachedParquetFileReader
impl AsyncFileReader for CachedParquetFileReader
Source§fn get_bytes(&mut self, range: Range<u64>) -> BoxFuture<'_, Result<Bytes>>
fn get_bytes(&mut self, range: Range<u64>) -> BoxFuture<'_, Result<Bytes>>
Retrieve the bytes in
rangeSource§fn get_byte_ranges(
&mut self,
ranges: Vec<Range<u64>>,
) -> BoxFuture<'_, Result<Vec<Bytes>>>where
Self: Send,
fn get_byte_ranges(
&mut self,
ranges: Vec<Range<u64>>,
) -> BoxFuture<'_, Result<Vec<Bytes>>>where
Self: Send,
Retrieve multiple byte ranges. The default implementation will call
get_bytes sequentiallySource§fn get_metadata<'a>(
&'a mut self,
options: Option<&'a ArrowReaderOptions>,
) -> BoxFuture<'a, Result<Arc<ParquetMetaData>>>
fn get_metadata<'a>( &'a mut self, options: Option<&'a ArrowReaderOptions>, ) -> BoxFuture<'a, Result<Arc<ParquetMetaData>>>
Return a future which results in the
ParquetMetaData for this Parquet file. Read moreAuto 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
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