- java.lang.Object
-
- org.apache.flink.fs.s3hadoop.HadoopS3AccessHelper
-
- All Implemented Interfaces:
org.apache.flink.fs.s3.common.writer.S3AccessHelper
public class HadoopS3AccessHelper extends Object implements org.apache.flink.fs.s3.common.writer.S3AccessHelper
An implementation of theS3AccessHelperfor the Hadoop S3A filesystem.
-
-
Constructor Summary
Constructors Constructor Description HadoopS3AccessHelper(org.apache.hadoop.fs.s3a.S3AFileSystem s3a, org.apache.hadoop.conf.Configuration conf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.amazonaws.services.s3.model.CompleteMultipartUploadResultcommitMultiPartUpload(String destKey, String uploadId, List<com.amazonaws.services.s3.model.PartETag> partETags, long length, AtomicInteger errorCount)booleandeleteObject(String key)longgetObject(String key, File targetLocation)com.amazonaws.services.s3.model.ObjectMetadatagetObjectMetadata(String key)com.amazonaws.services.s3.model.PutObjectResultputObject(String key, File inputFile)StringstartMultiPartUpload(String key)com.amazonaws.services.s3.model.UploadPartResultuploadPart(String key, String uploadId, int partNumber, File inputFile, long length)
-
-
-
Method Detail
-
startMultiPartUpload
public String startMultiPartUpload(String key) throws IOException
- Specified by:
startMultiPartUploadin interfaceorg.apache.flink.fs.s3.common.writer.S3AccessHelper- Throws:
IOException
-
uploadPart
public com.amazonaws.services.s3.model.UploadPartResult uploadPart(String key, String uploadId, int partNumber, File inputFile, long length) throws IOException
- Specified by:
uploadPartin interfaceorg.apache.flink.fs.s3.common.writer.S3AccessHelper- Throws:
IOException
-
putObject
public com.amazonaws.services.s3.model.PutObjectResult putObject(String key, File inputFile) throws IOException
- Specified by:
putObjectin interfaceorg.apache.flink.fs.s3.common.writer.S3AccessHelper- Throws:
IOException
-
commitMultiPartUpload
public com.amazonaws.services.s3.model.CompleteMultipartUploadResult commitMultiPartUpload(String destKey, String uploadId, List<com.amazonaws.services.s3.model.PartETag> partETags, long length, AtomicInteger errorCount) throws IOException
- Specified by:
commitMultiPartUploadin interfaceorg.apache.flink.fs.s3.common.writer.S3AccessHelper- Throws:
IOException
-
deleteObject
public boolean deleteObject(String key) throws IOException
- Specified by:
deleteObjectin interfaceorg.apache.flink.fs.s3.common.writer.S3AccessHelper- Throws:
IOException
-
getObject
public long getObject(String key, File targetLocation) throws IOException
- Specified by:
getObjectin interfaceorg.apache.flink.fs.s3.common.writer.S3AccessHelper- Throws:
IOException
-
getObjectMetadata
public com.amazonaws.services.s3.model.ObjectMetadata getObjectMetadata(String key) throws IOException
- Specified by:
getObjectMetadatain interfaceorg.apache.flink.fs.s3.common.writer.S3AccessHelper- Throws:
IOException
-
-