Trait lance::encodings::Encoder

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

Encoder - Write an arrow array to the file.

Required Methods§

source

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

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

Implementors§