pub trait FormatRead: Send + Sync {
// Required method
fn read<'life0, 'async_trait>(
&'life0 self,
reader: Box<dyn FileReader>,
) -> Pin<Box<dyn Future<Output = Result<BatchStream, TransferredError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Decodes a file’s bytes into Arrow batches.
Required Methods§
Sourcefn read<'life0, 'async_trait>(
&'life0 self,
reader: Box<dyn FileReader>,
) -> Pin<Box<dyn Future<Output = Result<BatchStream, TransferredError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read<'life0, 'async_trait>(
&'life0 self,
reader: Box<dyn FileReader>,
) -> Pin<Box<dyn Future<Output = Result<BatchStream, TransferredError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read one open file handle into a stream of Arrow batches.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".