public static class MultipartUtils.UploadIterator extends Object implements org.apache.hadoop.fs.RemoteIterator<com.amazonaws.services.s3.model.MultipartUpload>
Listing.FileStatusListingIterator, but
iterates over pending uploads instead of existing objects.| Constructor and Description |
|---|
UploadIterator(com.amazonaws.services.s3.AmazonS3 s3,
Invoker invoker,
String bucketName,
int maxKeys,
String prefix) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
com.amazonaws.services.s3.model.MultipartUpload |
next() |
@Retries.RetryTranslated public UploadIterator(com.amazonaws.services.s3.AmazonS3 s3, Invoker invoker, String bucketName, int maxKeys, @Nullable String prefix) throws IOException
IOExceptionpublic boolean hasNext()
throws IOException
hasNext in interface org.apache.hadoop.fs.RemoteIterator<com.amazonaws.services.s3.model.MultipartUpload>IOExceptionpublic com.amazonaws.services.s3.model.MultipartUpload next()
throws IOException
next in interface org.apache.hadoop.fs.RemoteIterator<com.amazonaws.services.s3.model.MultipartUpload>IOExceptionCopyright © 2008–2021 Apache Software Foundation. All rights reserved.