Skip to main content

ChunkKeyEncodingTraits

Trait ChunkKeyEncodingTraits 

Source
pub trait ChunkKeyEncodingTraits:
    ExtensionName
    + Debug
    + Send
    + Sync {
    // Required methods
    fn create(
        metadata: &MetadataV3,
    ) -> Result<ChunkKeyEncoding, PluginCreateError>
       where Self: Sized;
    fn configuration(&self) -> Configuration;
    fn encode(&self, chunk_grid_indices: &[u64]) -> StoreKey;
}
Expand description

Chunk key encoding traits.

Required Methods§

Source

fn create(metadata: &MetadataV3) -> Result<ChunkKeyEncoding, PluginCreateError>
where Self: Sized,

Create a chunk key encoding from Zarr V3 metadata.

§Errors

Returns PluginCreateError if the plugin cannot be created.

Source

fn configuration(&self) -> Configuration

The configuration of the chunk key encoding.

Source

fn encode(&self, chunk_grid_indices: &[u64]) -> StoreKey

Encode chunk grid indices (grid cell coordinates) into a store key.

Implementors§