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§
Sourcefn create(metadata: &MetadataV3) -> Result<ChunkKeyEncoding, PluginCreateError>where
Self: Sized,
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.
Sourcefn configuration(&self) -> Configuration
fn configuration(&self) -> Configuration
The configuration of the chunk key encoding.