public class CSES3AFileSystemOperations extends Object implements S3AFileSystemOperations
S3AFileSystemOperations interface.
This handles certain filesystem operations when s3 client side encryption is enabled.| Constructor and Description |
|---|
CSES3AFileSystemOperations()
Constructs a new instance of
CSES3AFileSystemOperations. |
| Modifier and Type | Method and Description |
|---|---|
CSEMaterials |
getClientSideEncryptionMaterials(org.apache.hadoop.conf.Configuration conf,
String bucket,
S3AEncryptionMethods algorithm)
Retrieves the cse materials.
|
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 using encrypted S3 client.
|
S3ClientFactory |
getS3ClientFactory(org.apache.hadoop.conf.Configuration conf)
Retrieves the S3 client factory for the specified class and configuration.
|
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.
|
void |
setCSEGauge(org.apache.hadoop.fs.statistics.impl.IOStatisticsStore ioStatisticsStore)
Set the client side encryption gauge 1.
|
public CSES3AFileSystemOperations()
CSES3AFileSystemOperations.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 S3AFileSystemOperationsstore - 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 void setCSEGauge(org.apache.hadoop.fs.statistics.impl.IOStatisticsStore ioStatisticsStore)
setCSEGauge in interface S3AFileSystemOperationsioStatisticsStore - The IOStatisticsStore of the filesystem.public CSEMaterials getClientSideEncryptionMaterials(org.apache.hadoop.conf.Configuration conf, String bucket, S3AEncryptionMethods algorithm) throws IOException
getClientSideEncryptionMaterials in interface S3AFileSystemOperationsconf - The Hadoop configuration object.bucket - The name of the S3 bucket.algorithm - The client-side encryption algorithm to use.IOException - If an error occurs while retrieving the encryption materials.public S3ClientFactory getS3ClientFactory(org.apache.hadoop.conf.Configuration conf)
getS3ClientFactory in interface S3AFileSystemOperationsconf - The Hadoop configuration object.public S3ClientFactory getUnencryptedS3ClientFactory(org.apache.hadoop.conf.Configuration conf)
getUnencryptedS3ClientFactory in interface S3AFileSystemOperationsconf - 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 S3AFileSystemOperationskey - 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.