Class FSOperations.FSDelete

java.lang.Object
org.apache.hadoop.fs.http.server.FSOperations.FSDelete
All Implemented Interfaces:
FileSystemAccess.FileSystemExecutor<org.json.simple.JSONObject>
Enclosing class:
FSOperations

@Private public static class FSOperations.FSDelete extends Object implements FileSystemAccess.FileSystemExecutor<org.json.simple.JSONObject>
Executor that performs a delete FileSystemAccess files system operation.
  • Constructor Details

    • FSDelete

      public FSDelete(String path, boolean recursive)
      Creates a Delete executor.
      Parameters:
      path - path to delete.
      recursive - if the delete should be recursive or not.
  • Method Details

    • execute

      public org.json.simple.JSONObject execute(org.apache.hadoop.fs.FileSystem fs) throws IOException
      Executes the filesystem operation.
      Specified by:
      execute in interface FileSystemAccess.FileSystemExecutor<org.json.simple.JSONObject>
      Parameters:
      fs - filesystem instance to use.
      Returns:
      true if the delete operation was successful, false otherwise.
      Throws:
      IOException - thrown if an IO error occurred.