libzarr
Header-only C++17 Zarr v2/v3, WASM-compatible
Loading...
Searching...
No Matches
Public Attributes | List of all members
zarr::shard::Placement Struct Reference

#include <sharding.hpp>

Public Attributes

std::string shard_key
 Store key of the owning shard object.
 
std::uint64_t slot = 0
 C-order slot of the chunk within the shard (pass to extent()).
 
std::uint64_t index_size = 0
 
bool index_at_end = true
 

Detailed Description

Which shard object holds an inner chunk and where its index sits — computed from ArrayMeta and the array's path alone (shard::place).

Member Data Documentation

◆ index_at_end

bool zarr::shard::Placement::index_at_end = true

index_location: end (default, index is the trailing index_size bytes) or start (index is the leading index_size bytes).

◆ index_size

std::uint64_t zarr::shard::Placement::index_size = 0

Encoded byte size of the shard index; fetch this many bytes at the index location (a suffix range when index_at_end, else a prefix range).


The documentation for this struct was generated from the following file: