Package org.apache.hadoop.fs.s3a.impl
Class BulkDeleteOperation
java.lang.Object
org.apache.hadoop.fs.s3a.impl.AbstractStoreOperation
org.apache.hadoop.fs.s3a.impl.BulkDeleteOperation
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.fs.BulkDelete,org.apache.hadoop.fs.statistics.IOStatisticsSource
public class BulkDeleteOperation
extends AbstractStoreOperation
implements org.apache.hadoop.fs.BulkDelete
S3A Implementation of the
BulkDelete interface.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceCallbacks for the bulk delete operation. -
Constructor Summary
ConstructorsConstructorDescriptionBulkDeleteOperation(StoreContext storeContext, BulkDeleteOperation.BulkDeleteOperationCallbacks callbacks, org.apache.hadoop.fs.Path basePath, int pageSize, org.apache.hadoop.fs.store.audit.AuditSpan span) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.fs.PathbasePath()bulkDelete(Collection<org.apache.hadoop.fs.Path> paths) voidclose()intpageSize()Methods inherited from class org.apache.hadoop.fs.s3a.impl.AbstractStoreOperation
activateAuditSpan, getAuditSpan, getStoreContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.fs.statistics.IOStatisticsSource
getIOStatistics
-
Constructor Details
-
BulkDeleteOperation
public BulkDeleteOperation(StoreContext storeContext, BulkDeleteOperation.BulkDeleteOperationCallbacks callbacks, org.apache.hadoop.fs.Path basePath, int pageSize, org.apache.hadoop.fs.store.audit.AuditSpan span)
-
-
Method Details
-
pageSize
public int pageSize()- Specified by:
pageSizein interfaceorg.apache.hadoop.fs.BulkDelete
-
basePath
public org.apache.hadoop.fs.Path basePath()- Specified by:
basePathin interfaceorg.apache.hadoop.fs.BulkDelete
-
bulkDelete
public List<Map.Entry<org.apache.hadoop.fs.Path,String>> bulkDelete(Collection<org.apache.hadoop.fs.Path> paths) throws IOException, IllegalArgumentException - Specified by:
bulkDeletein interfaceorg.apache.hadoop.fs.BulkDelete- Throws:
IOExceptionIllegalArgumentException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-