Skip to main content

FormatRead

Trait FormatRead 

Source
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§

Source

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".

Implementors§