Class BulkDeleteUtils

java.lang.Object
org.apache.hadoop.fs.BulkDeleteUtils

public final class BulkDeleteUtils extends Object
Utility class for bulk delete operations.
  • Method Details

    • validateBulkDeletePaths

      public static void validateBulkDeletePaths(Collection<Path> paths, int pageSize, Path basePath)
      Preconditions for bulk delete paths.
      Parameters:
      paths - paths to delete.
      pageSize - maximum number of paths to delete in a single operation.
      basePath - base path for the delete operation.
    • validatePathIsUnderParent

      public static boolean validatePathIsUnderParent(Path p, Path basePath)
      Check if a given path is the base path or under the base path.
      Parameters:
      p - path to check.
      basePath - base path.
      Returns:
      true if the given path is the base path or under the base path.