Class MultipartUtils.UploadIterator

java.lang.Object
org.apache.hadoop.fs.s3a.MultipartUtils.UploadIterator
All Implemented Interfaces:
org.apache.hadoop.fs.RemoteIterator<software.amazon.awssdk.services.s3.model.MultipartUpload>
Enclosing class:
MultipartUtils

public static class MultipartUtils.UploadIterator extends Object implements org.apache.hadoop.fs.RemoteIterator<software.amazon.awssdk.services.s3.model.MultipartUpload>
Iterator over multipart uploads. Similar to Listing.FileStatusListingIterator, but iterates over pending uploads instead of existing objects.
  • Constructor Details

    • UploadIterator

      @RetryTranslated public UploadIterator(StoreContext storeContext, software.amazon.awssdk.services.s3.S3Client s3, int maxKeys, @Nullable String prefix) throws IOException
      Construct an iterator to list uploads under a path.
      Parameters:
      storeContext - store context
      s3 - s3 client
      maxKeys - max # of keys to list per batch
      prefix - prefix
      Throws:
      IOException - listing failure.
  • Method Details

    • hasNext

      public boolean hasNext() throws IOException
      Specified by:
      hasNext in interface org.apache.hadoop.fs.RemoteIterator<software.amazon.awssdk.services.s3.model.MultipartUpload>
      Throws:
      IOException
    • next

      public software.amazon.awssdk.services.s3.model.MultipartUpload next() throws IOException
      Specified by:
      next in interface org.apache.hadoop.fs.RemoteIterator<software.amazon.awssdk.services.s3.model.MultipartUpload>
      Throws:
      IOException