public static class MultipartUtils.UploadIterator extends Object implements org.apache.hadoop.fs.RemoteIterator<software.amazon.awssdk.services.s3.model.MultipartUpload>
Listing.FileStatusListingIterator, but
iterates over pending uploads instead of existing objects.| Constructor and Description |
|---|
UploadIterator(StoreContext storeContext,
software.amazon.awssdk.services.s3.S3Client s3,
int maxKeys,
String prefix)
Construct an iterator to list uploads under a path.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
software.amazon.awssdk.services.s3.model.MultipartUpload |
next() |
@Retries.RetryTranslated public UploadIterator(StoreContext storeContext, software.amazon.awssdk.services.s3.S3Client s3, int maxKeys, @Nullable String prefix) throws IOException
storeContext - store contexts3 - s3 clientmaxKeys - max # of keys to list per batchprefix - prefixIOException - listing failure.public boolean hasNext()
throws IOException
hasNext in interface org.apache.hadoop.fs.RemoteIterator<software.amazon.awssdk.services.s3.model.MultipartUpload>IOExceptionpublic software.amazon.awssdk.services.s3.model.MultipartUpload next()
throws IOException
next in interface org.apache.hadoop.fs.RemoteIterator<software.amazon.awssdk.services.s3.model.MultipartUpload>IOExceptionCopyright © 2008–2024 Apache Software Foundation. All rights reserved.