java.io.Closeable, java.lang.AutoCloseable, BulkDelete, IOStatisticsSourcepublic class DefaultBulkDeleteOperation extends java.lang.Object implements BulkDelete
BulkDelete interface.| Constructor | Description |
|---|---|
DefaultBulkDeleteOperation(Path basePath,
FileSystem fs) |
| Modifier and Type | Method | Description |
|---|---|---|
Path |
basePath() |
Base path of a bulk delete operation.
|
java.util.List<java.util.Map.Entry<Path,java.lang.String>> |
bulkDelete(java.util.Collection<Path> paths) |
Delete a list of files/objects.
|
void |
close() |
|
int |
pageSize() |
The maximum number of objects/files to delete in a single request.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIOStatisticspublic DefaultBulkDeleteOperation(Path basePath, FileSystem fs)
public int pageSize()
BulkDeletepageSize in interface BulkDeletepublic Path basePath()
BulkDeleteBulkDelete.bulkDelete(Collection) must be under this path.basePath in interface BulkDeletepublic java.util.List<java.util.Map.Entry<Path,java.lang.String>> bulkDelete(java.util.Collection<Path> paths) throws java.io.IOException, java.lang.IllegalArgumentException
BulkDelete.basePath().BulkDelete.pageSize().FileSystem.delete(path, false)
on the single path in the list.bulkDelete in interface BulkDeletepaths - list of paths which must be absolute and under the base path.
provided in BulkDelete.basePath().java.io.IOException - IO problems including networking, authentication and more.java.lang.IllegalArgumentException - if a path argument is invalid.public void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.