Package org.apache.hadoop.fs
Class BulkDeleteUtils
java.lang.Object
org.apache.hadoop.fs.BulkDeleteUtils
Utility class for bulk delete operations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidvalidateBulkDeletePaths(Collection<Path> paths, int pageSize, Path basePath) Preconditions for bulk delete paths.static booleanvalidatePathIsUnderParent(Path p, Path basePath) Check if a given path is the base path or under the base path.
-
Method Details
-
validateBulkDeletePaths
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
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.
-