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§
Sourcefn 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,
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.