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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)