Class DirectoryBlobStorage
java.lang.Object
io.datarouter.filesystem.node.object.DirectoryBlobStorage
public class DirectoryBlobStorage
extends java.lang.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)java.lang.StringgetRoot()java.util.Optional<java.lang.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<java.util.List<io.datarouter.storage.file.PathbeanKey>>scanKeysPaged(io.datarouter.storage.util.Subpath subpath)io.datarouter.scanner.Scanner<java.util.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, java.io.InputStream inputStream)voidwrite(io.datarouter.storage.file.PathbeanKey key, java.util.Iterator<byte[]> chunks)
-
Constructor Details
-
Method Details
-
getRoot
public java.lang.String getRoot() -
exists
public boolean exists(io.datarouter.storage.file.PathbeanKey key) -
length
public java.util.Optional<java.lang.Long> length(io.datarouter.storage.file.PathbeanKey key) -
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, java.util.Iterator<byte[]> chunks) -
write
public void write(io.datarouter.storage.file.PathbeanKey key, java.io.InputStream inputStream) -
scanPaged
public io.datarouter.scanner.Scanner<java.util.List<io.datarouter.storage.file.Pathbean>> scanPaged(io.datarouter.storage.util.Subpath subpath) -
scanKeysPaged
public io.datarouter.scanner.Scanner<java.util.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)
-