BulkDeleteUtils (Apache Hadoop Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.fs, class: BulkDeleteUtils

Package org.apache.hadoop.fs

# Class BulkDeleteUtils

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

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

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static void`
  `validateBulkDeletePaths(Collection<Path> paths, int pageSize, Path basePath)`
  Preconditions for bulk delete paths.
  `static boolean`
  `validatePathIsUnderParent(Path p, Path basePath)`
  Check if a given path is the base path or under the base path.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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.