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
    void delete​(io.datarouter.storage.file.PathbeanKey key)  
    void deleteAll​(io.datarouter.storage.util.Subpath subpath)  
    boolean exists​(io.datarouter.storage.file.PathbeanKey key)  
    String getRoot()  
    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)  
    void write​(io.datarouter.storage.file.PathbeanKey key, byte[] bytes)  
    void write​(io.datarouter.storage.file.PathbeanKey key, io.datarouter.scanner.Scanner<byte[]> chunks)  
    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 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

      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)
    • 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)