public class MarkerToolOperationsImpl extends Object implements MarkerToolOperations
OperationCallbacks instance provided in the constructor.| Constructor and Description |
|---|
MarkerToolOperationsImpl(OperationCallbacks operations)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.fs.RemoteIterator<S3AFileStatus> |
listObjects(org.apache.hadoop.fs.Path path,
String key)
Create an iterator over objects in S3.
|
void |
removeKeys(List<com.amazonaws.services.s3.model.DeleteObjectsRequest.KeyVersion> keysToDelete,
boolean deleteFakeDir)
Remove keys from the store.
|
public MarkerToolOperationsImpl(OperationCallbacks operations)
operations - implementation of the operationspublic org.apache.hadoop.fs.RemoteIterator<S3AFileStatus> listObjects(org.apache.hadoop.fs.Path path, String key) throws IOException
MarkerToolOperationslistObjects in interface MarkerToolOperationspath - path of the listing.key - object keyIOException - failure.public void removeKeys(List<com.amazonaws.services.s3.model.DeleteObjectsRequest.KeyVersion> keysToDelete, boolean deleteFakeDir) throws com.amazonaws.services.s3.model.MultiObjectDeleteException, com.amazonaws.AmazonClientException, IOException
MarkerToolOperationsremoveKeys in interface MarkerToolOperationskeysToDelete - collection of keys to delete on the s3-backend.
if empty, no request is made of the object store.deleteFakeDir - indicates whether this is for deleting fake dirs.
all deleted keyscom.amazonaws.services.s3.model.MultiObjectDeleteException - one or more of the keys could not
be deleted in a multiple object delete operation.com.amazonaws.AmazonClientException - amazon-layer failure.org.apache.hadoop.fs.InvalidRequestException - if the request was rejected due to
a mistaken attempt to delete the root directory.IOException - other IO Exception.Copyright © 2008–2023 Apache Software Foundation. All rights reserved.