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