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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(io.datarouter.storage.file.PathbeanKey key)
     
    void
    deleteAll(io.datarouter.storage.util.Subpath subpath)
     
    boolean
    exists(io.datarouter.storage.file.PathbeanKey key)
     
     
    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)
     
    void
    write(io.datarouter.storage.file.PathbeanKey key, byte[] bytes)
     
    void
    write(io.datarouter.storage.file.PathbeanKey key, InputStream inputStream)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DirectoryBlobStorage

      public DirectoryBlobStorage(DirectoryManager directoryManager)
  • Method Details

    • getRoot

      public String getRoot()
    • exists

      public boolean exists(io.datarouter.storage.file.PathbeanKey key)
    • length

      public Optional<Long> length(io.datarouter.storage.file.PathbeanKey key)
    • read

      public Optional<byte[]> read(io.datarouter.storage.file.PathbeanKey key)
    • read

      public Optional<byte[]> read(io.datarouter.storage.file.PathbeanKey key, long offset, int length)
    • readInputStream

      public InputStream readInputStream(io.datarouter.storage.file.PathbeanKey key)
    • write

      public void write(io.datarouter.storage.file.PathbeanKey key, byte[] bytes)
    • write

      public void write(io.datarouter.storage.file.PathbeanKey key, InputStream inputStream)
    • 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)