[][src]Trait n5::N5Writer

pub trait N5Writer: N5Reader {
    fn set_attributes(
        &self,
        path_name: &str,
        attributes: Map<String, Value>
    ) -> Result<(), Error>;
fn create_group(&self, path_name: &str) -> Result<(), Error>;
fn remove(&self, path_name: &str) -> Result<(), Error>;
fn write_block<T: ReflectedType, B: DataBlock<T> + WriteableDataBlock>(
        &self,
        path_name: &str,
        data_attrs: &DatasetAttributes,
        block: &B
    ) -> Result<(), Error>;
fn delete_block(
        &self,
        path_name: &str,
        grid_position: &[u64]
    ) -> Result<bool, Error>; fn set_attribute<T: Serialize>(
        &self,
        path_name: &str,
        key: String,
        attribute: T
    ) -> Result<(), Error> { ... }
fn set_dataset_attributes(
        &self,
        path_name: &str,
        data_attrs: &DatasetAttributes
    ) -> Result<(), Error> { ... }
fn create_dataset(
        &self,
        path_name: &str,
        data_attrs: &DatasetAttributes
    ) -> Result<(), Error> { ... }
fn remove_all(&self) -> Result<(), Error> { ... } }

Mutating operations on N5 containers.

Required methods

fn set_attributes(
    &self,
    path_name: &str,
    attributes: Map<String, Value>
) -> Result<(), Error>

Set a map of attributes.

fn create_group(&self, path_name: &str) -> Result<(), Error>

Create a group (directory).

fn remove(&self, path_name: &str) -> Result<(), Error>

Remove a group or dataset (directory and all contained files).

This will wait on locks acquired by other writers or readers.

fn write_block<T: ReflectedType, B: DataBlock<T> + WriteableDataBlock>(
    &self,
    path_name: &str,
    data_attrs: &DatasetAttributes,
    block: &B
) -> Result<(), Error>

fn delete_block(
    &self,
    path_name: &str,
    grid_position: &[u64]
) -> Result<bool, Error>

Delete a block from a dataset.

Returns true if the block does not exist on the backend at the completion of the call.

Loading content...

Provided methods

fn set_attribute<T: Serialize>(
    &self,
    path_name: &str,
    key: String,
    attribute: T
) -> Result<(), Error>

Set a single attribute.

fn set_dataset_attributes(
    &self,
    path_name: &str,
    data_attrs: &DatasetAttributes
) -> Result<(), Error>

Set mandatory dataset attributes.

fn create_dataset(
    &self,
    path_name: &str,
    data_attrs: &DatasetAttributes
) -> Result<(), Error>

Create a dataset. This will create the dataset group and attributes, but not populate any block data.

fn remove_all(&self) -> Result<(), Error>

Remove the N5 container.

Loading content...

Implementors

impl N5Writer for N5Filesystem[src]

Loading content...