Class S3ObjectAttributes

java.lang.Object
org.apache.hadoop.fs.s3a.S3ObjectAttributes

@Private @Evolving public class S3ObjectAttributes extends Object
This class holds attributes of an object independent of the file status type. It is used in S3AInputStream and elsewhere. as a way to reduce parameters being passed to the constructor of such class, and elsewhere to be a source-neutral representation of a file status.
  • Constructor Details

    • S3ObjectAttributes

      public S3ObjectAttributes(String bucket, org.apache.hadoop.fs.Path path, String key, S3AEncryptionMethods serverSideEncryptionAlgorithm, String serverSideEncryptionKey, String eTag, String versionId, long len)
      Constructor.
      Parameters:
      bucket - s3 bucket
      path - path
      key - object key
      serverSideEncryptionAlgorithm - current encryption algorithm
      serverSideEncryptionKey - any server side encryption key?
      len - object length
      eTag - optional etag
      versionId - optional version id
  • Method Details

    • getBucket

      public String getBucket()
    • getKey

      public String getKey()
    • getServerSideEncryptionAlgorithm

      public S3AEncryptionMethods getServerSideEncryptionAlgorithm()
    • getServerSideEncryptionKey

      public String getServerSideEncryptionKey()
    • getETag

      public String getETag()
    • getVersionId

      public String getVersionId()
    • getLen

      public long getLen()
    • getPath

      public org.apache.hadoop.fs.Path getPath()