Skip to main content

Encoder

Trait Encoder 

Source
pub trait Encoder {
    // Required method
    fn encode<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        array: &'life1 [&'life2 dyn Array],
    ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Encoder - Write an arrow array to the file.

Required Methods§

Source

fn encode<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, array: &'life1 [&'life2 dyn Array], ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Write an slice of Arrays, and returns the file offset of the beginning of the batch.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§