Skip to main content

DataFileReader

Trait DataFileReader 

Source
pub trait DataFileReader: Send + Sync {
    // Required method
    fn read_file<'life0, 'async_trait>(
        &'life0 self,
        path: Path,
    ) -> Pin<Box<dyn Future<Output = DeltaResult<BatchStream>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

File tier: reads a single parquet data file (the per-file decryption seam, mirroring DataFileWriter). Impl: reader::ParquetFileReader.

Required Methods§

Source

fn read_file<'life0, 'async_trait>( &'life0 self, path: Path, ) -> Pin<Box<dyn Future<Output = DeltaResult<BatchStream>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read the parquet data file at path into a stream of record batches.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§