Trait AsyncArrayPartialDecoderTraits

Source
pub trait AsyncArrayPartialDecoderTraits:
    Any
    + Send
    + Sync {
    // Required methods
    fn data_type(&self) -> &DataType;
    fn partial_decode<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        array_subsets: &'life1 [ArraySubset],
        options: &'life2 CodecOptions,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<ArrayBytes<'_>>, CodecError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;

    // Provided method
    fn partial_decode_into<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        array_subset: &'life1 ArraySubset,
        output_view: &'life2 mut ArrayBytesFixedDisjointView<'life3>,
        options: &'life4 CodecOptions,
    ) -> Pin<Box<dyn Future<Output = Result<(), CodecError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait { ... }
}
Expand description

Asynchronous partial array decoder traits.

Required Methods§

Source

fn data_type(&self) -> &DataType

Return the data type of the partial decoder.

Source

fn partial_decode<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, array_subsets: &'life1 [ArraySubset], options: &'life2 CodecOptions, ) -> Pin<Box<dyn Future<Output = Result<Vec<ArrayBytes<'_>>, CodecError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Partially decode a chunk.

§Errors

Returns CodecError if a codec fails, array subset is invalid, or the array subset shape does not match array view subset shape.

Provided Methods§

Source

fn partial_decode_into<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, array_subset: &'life1 ArraySubset, output_view: &'life2 mut ArrayBytesFixedDisjointView<'life3>, options: &'life4 CodecOptions, ) -> Pin<Box<dyn Future<Output = Result<(), CodecError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Implementors§