Package com.bc.zarr.storage
Interface Store
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
FileSystemStore,InMemoryStore,ZipStore
public interface Store extends Closeable
Store interface according to https://zarr.readthedocs.io/en/stable/spec/v2.html#storage A Zarr array can be stored in any storage system that provides a key/value interface, where a key is an ASCII string and a value is an arbitrary sequence of bytes, and the supported operations are read (get the sequence of bytes associated with a given key), write (set the sequence of bytes associated with a given key) and delete (remove a key/value pair).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()voiddelete(String key)TreeSet<String>getArrayKeys()TreeSet<String>getGroupKeys()InputStreamgetInputStream(String key)TreeSet<String>getKeysEndingWith(String suffix)OutputStreamgetOutputStream(String key)Stream<String>getRelativeLeafKeys(String key)
-
-
-
Method Detail
-
getInputStream
InputStream getInputStream(String key) throws IOException
- Throws:
IOException
-
getOutputStream
OutputStream getOutputStream(String key) throws IOException
- Throws:
IOException
-
delete
void delete(String key) throws IOException
- Throws:
IOException
-
getArrayKeys
TreeSet<String> getArrayKeys() throws IOException
- Throws:
IOException
-
getGroupKeys
TreeSet<String> getGroupKeys() throws IOException
- Throws:
IOException
-
getKeysEndingWith
TreeSet<String> getKeysEndingWith(String suffix) throws IOException
- Throws:
IOException
-
getRelativeLeafKeys
Stream<String> getRelativeLeafKeys(String key) throws IOException
- Throws:
IOException
-
close
default void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-