Class Operator

All Implemented Interfaces:
AutoCloseable

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

  • Method Details

    • of

      public static Operator 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 Operator duplicate()
      Returns:
      the cloned blocking operator.
      See Also:
    • write

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

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

      public OperatorOutputStream createOutputStream(String path)
    • createOutputStream

      public OperatorOutputStream createOutputStream(String path, int maxBytes)
    • read

      public byte[] read(String path)
    • createInputStream

      public OperatorInputStream createInputStream(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