Trait zarrs::array::codec::AsyncArrayPartialDecoderTraits
source · pub trait AsyncArrayPartialDecoderTraits: Send + Sync {
// Required methods
fn data_type(&self) -> &DataType;
fn partial_decode_opt<'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<'life0, 'life1, 'async_trait>(
&'life0 self,
array_subsets: &'life1 [ArraySubset],
) -> Pin<Box<dyn Future<Output = Result<Vec<ArrayBytes<'_>>, CodecError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}
Available on crate feature
async
only.Expand description
Asynchronous partial array decoder traits.
Required Methods§
sourcefn partial_decode_opt<'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,
fn partial_decode_opt<'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,
Explicit options variant of partial_decode
.
Provided Methods§
sourcefn partial_decode<'life0, 'life1, 'async_trait>(
&'life0 self,
array_subsets: &'life1 [ArraySubset],
) -> Pin<Box<dyn Future<Output = Result<Vec<ArrayBytes<'_>>, CodecError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn partial_decode<'life0, 'life1, 'async_trait>(
&'life0 self,
array_subsets: &'life1 [ArraySubset],
) -> Pin<Box<dyn Future<Output = Result<Vec<ArrayBytes<'_>>, CodecError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Partially decode a chunk with default codec options.
§Errors
Returns CodecError
if a codec fails, array subset is invalid, or the array subset shape does not match array view subset shape.