public class BaseS3AFileSystemOperations extends Object implements S3AFileSystemOperations
S3AFileSystemOperations interface.
This handles certain filesystem operations when s3 client side encryption is disabled.| Constructor and Description |
|---|
BaseS3AFileSystemOperations()
Constructs a new instance of
BaseS3AFileSystemOperations. |
| Modifier and Type | Method and Description |
|---|---|
CSEMaterials |
getClientSideEncryptionMaterials(org.apache.hadoop.conf.Configuration conf,
String bucket,
S3AEncryptionMethods algorithm)
Retrieves the client-side encryption materials for the given bucket and encryption algorithm.
|
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.
|
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)
Return the size of S3 object.
|
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 to 0.
|
public BaseS3AFileSystemOperations()
BaseS3AFileSystemOperations.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)
getClientSideEncryptionMaterials in interface S3AFileSystemOperationsconf - The Hadoop configuration object.bucket - The name of the S3 bucket.algorithm - The client-side encryption algorithm to use.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 expected 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.