Skip to content

Convenience functions and exposed metadata #101

Answered by LDeakin
maximedion2 asked this question in Q&A
Discussion options

You must be logged in to vote

I think you might be looking for the following methods:

These can store an arbitrary subset of an array, you don't have to think about chunks. They (and other Array::store_* methods, excluding store_encoded_chunk) take care of everything for you, compression, sharding, etc.

You can grab individual components of the metadata: see https://docs.rs/zarrs/latest/zarrs/array/struct.Array.html#immutable-array-metadata--properties and below. EDIT: also Array::metadata() returns an enum ArrayMetadata that can represent V2/V3 metadata. The variants are completely pub.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@maximedion2
Comment options

Answer selected by maximedion2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants