public class CSEV1CompatibleS3AFileSystemOperations extends CSES3AFileSystemOperations
CSES3AFileSystemOperations class.
This handles certain file system operations when client-side encryption is enabled with v1 client
compatibility.
Constants.S3_ENCRYPTION_CSE_V1_COMPATIBILITY_ENABLED.| Constructor and Description |
|---|
CSEV1CompatibleS3AFileSystemOperations()
Constructs a new instance of
CSEV1CompatibleS3AFileSystemOperations. |
| Modifier and Type | Method and Description |
|---|---|
software.amazon.awssdk.core.ResponseInputStream<software.amazon.awssdk.services.s3.model.GetObjectResponse> |
getObject(S3AStore store,
software.amazon.awssdk.services.s3.model.GetObjectRequest request,
RequestFactory factory)
Retrieves an object from the S3.
|
long |
getS3ObjectSize(String key,
long length,
S3AStore store,
software.amazon.awssdk.services.s3.model.HeadObjectResponse response)
Retrieves the unencrypted length of an object in the S3 bucket.
|
S3ClientFactory |
getUnencryptedS3ClientFactory(org.apache.hadoop.conf.Configuration conf)
Retrieves the S3 client factory for the specified class and configuration.
|
getClientSideEncryptionMaterials, getS3ClientFactory, setCSEGaugepublic CSEV1CompatibleS3AFileSystemOperations()
CSEV1CompatibleS3AFileSystemOperations.public software.amazon.awssdk.core.ResponseInputStream<software.amazon.awssdk.services.s3.model.GetObjectResponse> getObject(S3AStore store, software.amazon.awssdk.services.s3.model.GetObjectRequest request, RequestFactory factory) throws IOException
getObject in interface S3AFileSystemOperationsgetObject in class CSES3AFileSystemOperationsstore - The S3AStore object representing the S3 bucket.request - The GetObjectRequest containing the details of the object to retrieve.factory - The RequestFactory used to create the GetObjectRequest.IOException - If an error occurs while retrieving the object.public S3ClientFactory getUnencryptedS3ClientFactory(org.apache.hadoop.conf.Configuration conf)
getUnencryptedS3ClientFactory in interface S3AFileSystemOperationsgetUnencryptedS3ClientFactory in class CSES3AFileSystemOperationsconf - The Hadoop configuration object.public long getS3ObjectSize(String key, long length, S3AStore store, software.amazon.awssdk.services.s3.model.HeadObjectResponse response) throws IOException
getS3ObjectSize in interface S3AFileSystemOperationsgetS3ObjectSize in class CSES3AFileSystemOperationskey - The key (path) of the object in the S3 bucket.length - The length of the object.store - The S3AStore object representing the S3 bucket.response - The HeadObjectResponse containing the metadata of the object.IOException - If an error occurs while retrieving the object size.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.