Trait zarrs::array::ArrayShardedExt

source ·
pub trait ArrayShardedExt {
    // Required methods
    fn is_sharded(&self) -> bool;
    fn inner_chunk_shape(&self) -> Option<ChunkShape>;
    fn inner_chunk_grid(&self) -> ChunkGrid;
}
Available on crate feature sharding only.
Expand description

An Array extension trait to simplify working with arrays using the sharding_indexed codec.

Required Methods§

source

fn is_sharded(&self) -> bool

Returns true if the array to bytes codec of the array is sharding_indexed.

source

fn inner_chunk_shape(&self) -> Option<ChunkShape>

Return the inner chunk shape.

Returns None for an unsharded array.

source

fn inner_chunk_grid(&self) -> ChunkGrid

Retrieve the inner chunk grid.

Returns the normal chunk grid for an unsharded array.

Implementors§

source§

impl<TStorage: ?Sized> ArrayShardedExt for Array<TStorage>