Skip to main content

write_bundle_arrays

Function write_bundle_arrays 

Source
pub fn write_bundle_arrays(
    codes: &StoreCodes<'_>,
    store: &Path,
    bundle_id: &str,
    dimensions: &[String; 3],
    pool: &ThreadPool,
) -> Result<BundleWrite>
Available on crate feature encoder only.
Expand description

Write one bundle’s variable arrays and the coordinate arrays its dimensions name into the shared store store, which is created if absent and otherwise left as it is: other bundles’ arrays, written before or concurrently, stay. The group document is not touched.

dimensions is what the encoder decided for the bundle (convert::store_dimensions); a coordinate shared with another bundle is the same bytes from either, and is written by rename so two concurrent writers never tear it. Arrays, codecs and chunking are exactly a one-bundle store’s, with attributes.xue.bundle added.