Class BlockingOperator

java.lang.Object
org.apache.opendal.NativeObject
org.apache.opendal.BlockingOperator
All Implemented Interfaces:
AutoCloseable

public class BlockingOperator extends NativeObject
BlockingOperator represents an underneath OpenDAL operator that accesses data synchronously.
  • Field Details

  • Method Details

    • of

      public static BlockingOperator of(String schema, Map<String,String> map)
      Construct an OpenDAL blocking operator:

      You can find all possible schemes here and see what config options each service supports.

      Parameters:
      schema - the name of the underneath service to access data from.
      map - a map of properties to construct the underneath operator.
    • duplicate

      public BlockingOperator duplicate()
      Returns:
      the cloned blocking operator.
      See Also:
    • write

      public void write(String path, String content)
    • write

      public void write(String path, byte[] content)
    • read

      public byte[] read(String path)
    • delete

      public void delete(String path)
    • stat

      public Metadata stat(String path)
    • createDir

      public void createDir(String path)
    • copy

      public void copy(String sourcePath, String targetPath)
    • rename

      public void rename(String sourcePath, String targetPath)
    • removeAll

      public void removeAll(String path)
    • list

      public List<Entry> list(String path)
    • disposeInternal

      protected void disposeInternal(long handle)
      Description copied from class: NativeObject
      Deletes underlying native object pointer.
      Specified by:
      disposeInternal in class NativeObject
      Parameters:
      handle - to the native object pointer