Package com.bc.zarr.storage
Class FileSystemStore
- java.lang.Object
-
- com.bc.zarr.storage.FileSystemStore
-
- All Implemented Interfaces:
Store,Closeable,AutoCloseable
public class FileSystemStore extends Object implements Store
-
-
Constructor Summary
Constructors Constructor Description FileSystemStore(String path, FileSystem fileSystem)FileSystemStore(Path rootPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
Constructor Detail
-
FileSystemStore
public FileSystemStore(String path, FileSystem fileSystem)
-
FileSystemStore
public FileSystemStore(Path rootPath)
-
-
Method Detail
-
getInputStream
public InputStream getInputStream(String key) throws IOException
- Specified by:
getInputStreamin interfaceStore- Throws:
IOException
-
getOutputStream
public OutputStream getOutputStream(String key)
- Specified by:
getOutputStreamin interfaceStore
-
delete
public void delete(String key) throws IOException
- Specified by:
deletein interfaceStore- Throws:
IOException
-
getArrayKeys
public TreeSet<String> getArrayKeys() throws IOException
- Specified by:
getArrayKeysin interfaceStore- Throws:
IOException
-
getGroupKeys
public TreeSet<String> getGroupKeys() throws IOException
- Specified by:
getGroupKeysin interfaceStore- Throws:
IOException
-
getKeysEndingWith
public TreeSet<String> getKeysEndingWith(String suffix) throws IOException
- Specified by:
getKeysEndingWithin interfaceStore- Throws:
IOException
-
getRelativeLeafKeys
public Stream<String> getRelativeLeafKeys(String key) throws IOException
- Specified by:
getRelativeLeafKeysin interfaceStore- Throws:
IOException
-
-