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§
sourcefn is_sharded(&self) -> bool
fn is_sharded(&self) -> bool
Returns true if the array to bytes codec of the array is sharding_indexed
.
sourcefn inner_chunk_shape(&self) -> Option<ChunkShape>
fn inner_chunk_shape(&self) -> Option<ChunkShape>
Return the inner chunk shape.
Returns None
for an unsharded array.
sourcefn inner_chunk_grid(&self) -> ChunkGrid
fn inner_chunk_grid(&self) -> ChunkGrid
Retrieve the inner chunk grid.
Returns the normal chunk grid for an unsharded array.