Class DirectoryBlobStorage
java.lang.Object
io.datarouter.filesystem.node.object.DirectoryBlobStorage
Wrap DirectoryManager with methods dealing in Pathbeans
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(io.datarouter.storage.file.PathbeanKey key) voiddeleteAll(io.datarouter.storage.util.Subpath subpath) booleanexists(io.datarouter.storage.file.PathbeanKey key) getRoot()length(io.datarouter.storage.file.PathbeanKey key) Optional<byte[]> read(io.datarouter.storage.file.PathbeanKey key) Optional<byte[]> read(io.datarouter.storage.file.PathbeanKey key, long offset, int length) readInputStream(io.datarouter.storage.file.PathbeanKey key) io.datarouter.scanner.Scanner<List<io.datarouter.storage.file.PathbeanKey>> scanKeysPaged(io.datarouter.storage.util.Subpath subpath, boolean sorted) io.datarouter.scanner.Scanner<List<io.datarouter.storage.file.Pathbean>> scanPaged(io.datarouter.storage.util.Subpath subpath, boolean sorted) voidwrite(io.datarouter.storage.file.PathbeanKey key, byte[] bytes) voidwrite(io.datarouter.storage.file.PathbeanKey key, InputStream inputStream)
-
Constructor Details
-
DirectoryBlobStorage
-
-
Method Details
-
getRoot
-
exists
public boolean exists(io.datarouter.storage.file.PathbeanKey key) -
length
-
read
-
read
-
readInputStream
-
write
public void write(io.datarouter.storage.file.PathbeanKey key, byte[] bytes) -
write
-
scanPaged
public io.datarouter.scanner.Scanner<List<io.datarouter.storage.file.Pathbean>> scanPaged(io.datarouter.storage.util.Subpath subpath, boolean sorted) -
scanKeysPaged
public io.datarouter.scanner.Scanner<List<io.datarouter.storage.file.PathbeanKey>> scanKeysPaged(io.datarouter.storage.util.Subpath subpath, boolean sorted) -
delete
public void delete(io.datarouter.storage.file.PathbeanKey key) -
deleteAll
public void deleteAll(io.datarouter.storage.util.Subpath subpath)
-