[−][src]Struct n5::filesystem::N5Filesystem
A filesystem-backed N5 container.
Methods
impl N5Filesystem
[src]
pub fn open(base_path: &str) -> Result<N5Filesystem>
[src]
Open an existing N5 container by path.
pub fn open_or_create(base_path: &str) -> Result<N5Filesystem>
[src]
Open an existing N5 container by path or create one if none exists.
Note this will update the version attribute for existing containers.
pub fn get_attributes(&self, path_name: &str) -> Result<Value>
[src]
Trait Implementations
impl N5Reader for N5Filesystem
[src]
fn get_version(&self) -> Result<Version>
[src]
fn get_dataset_attributes(&self, path_name: &str) -> Result<DatasetAttributes>
[src]
fn exists(&self, path_name: &str) -> bool
[src]
fn get_block_uri(
&self,
path_name: &str,
grid_position: &[i64]
) -> Result<String>
[src]
&self,
path_name: &str,
grid_position: &[i64]
) -> Result<String>
fn read_block<T>(
&self,
path_name: &str,
data_attrs: &DatasetAttributes,
grid_position: GridCoord
) -> Result<Option<VecDataBlock<T>>> where
VecDataBlock<T>: DataBlock<T>,
T: ReflectedType,
[src]
&self,
path_name: &str,
data_attrs: &DatasetAttributes,
grid_position: GridCoord
) -> Result<Option<VecDataBlock<T>>> where
VecDataBlock<T>: DataBlock<T>,
T: ReflectedType,
fn read_block_into<T: ReflectedType, B: DataBlock<T>>(
&self,
path_name: &str,
data_attrs: &DatasetAttributes,
grid_position: GridCoord,
block: &mut B
) -> Result<Option<()>>
[src]
&self,
path_name: &str,
data_attrs: &DatasetAttributes,
grid_position: GridCoord,
block: &mut B
) -> Result<Option<()>>
fn block_metadata(
&self,
path_name: &str,
_data_attrs: &DatasetAttributes,
grid_position: &[i64]
) -> Result<Option<DataBlockMetadata>>
[src]
&self,
path_name: &str,
_data_attrs: &DatasetAttributes,
grid_position: &[i64]
) -> Result<Option<DataBlockMetadata>>
fn list(&self, path_name: &str) -> Result<Vec<String>>
[src]
fn list_attributes(&self, path_name: &str) -> Result<Value>
[src]
fn dataset_exists(&self, path_name: &str) -> bool
[src]
Test whether a dataset exists.
impl N5Writer for N5Filesystem
[src]
fn set_attributes(
&self,
path_name: &str,
attributes: Map<String, Value>
) -> Result<()>
[src]
&self,
path_name: &str,
attributes: Map<String, Value>
) -> Result<()>
fn create_group(&self, path_name: &str) -> Result<()>
[src]
fn remove(&self, path_name: &str) -> Result<()>
[src]
fn write_block<T, B: DataBlock<T>>(
&self,
path_name: &str,
data_attrs: &DatasetAttributes,
block: &B
) -> Result<()>
[src]
&self,
path_name: &str,
data_attrs: &DatasetAttributes,
block: &B
) -> Result<()>
fn set_attribute<T: Serialize>(
&self,
path_name: &str,
key: String,
attribute: T
) -> Result<(), Error>
[src]
&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>
[src]
&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>
[src]
&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. Read more
fn remove_all(&self) -> Result<(), Error>
[src]
Remove the N5 container.
impl Clone for N5Filesystem
[src]
fn clone(&self) -> N5Filesystem
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for N5Filesystem
impl Sync for N5Filesystem
Blanket Implementations
impl<T> N5NdarrayReader for T where
T: N5Reader,
[src]
T: N5Reader,
fn read_ndarray<T>(
&self,
path_name: &str,
data_attrs: &DatasetAttributes,
bbox: &BoundingBox
) -> Result<Array<T, Dim<IxDynImpl>>, Error> where
VecDataBlock<T>: DataBlock<T>,
T: ReflectedType + Zero,
[src]
&self,
path_name: &str,
data_attrs: &DatasetAttributes,
bbox: &BoundingBox
) -> Result<Array<T, Dim<IxDynImpl>>, Error> where
VecDataBlock<T>: DataBlock<T>,
T: ReflectedType + Zero,
Read an abitrary bounding box from an N5 volume in an ndarray, reading blocks in serial as necessary. Read more
impl<T> N5NdarrayWriter for T where
T: N5Writer,
[src]
T: N5Writer,
fn write_ndarray<T>(
&self,
path_name: &str,
data_attrs: &DatasetAttributes,
offset: GridCoord,
array: &Array<T, Dim<IxDynImpl>>,
fill_val: T
) -> Result<(), Error> where
VecDataBlock<T>: DataBlock<T>,
T: ReflectedType + Zero,
[src]
&self,
path_name: &str,
data_attrs: &DatasetAttributes,
offset: GridCoord,
array: &Array<T, Dim<IxDynImpl>>,
fill_val: T
) -> Result<(), Error> where
VecDataBlock<T>: DataBlock<T>,
T: ReflectedType + Zero,
Write an abitrary bounding box from an ndarray into an N5 volume, writing blocks in serial as necessary. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,