- 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 theS3AccessHelper
for 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.CompleteMultipartUploadResult
commitMultiPartUpload(String destKey, String uploadId, List<com.amazonaws.services.s3.model.PartETag> partETags, long length, AtomicInteger errorCount)
boolean
deleteObject(String key)
long
getObject(String key, File targetLocation)
com.amazonaws.services.s3.model.ObjectMetadata
getObjectMetadata(String key)
com.amazonaws.services.s3.model.PutObjectResult
putObject(String key, File inputFile)
String
startMultiPartUpload(String key)
com.amazonaws.services.s3.model.UploadPartResult
uploadPart(String key, String uploadId, int partNumber, File inputFile, long length)
-
-
-
Method Detail
-
startMultiPartUpload
public String startMultiPartUpload(String key) throws IOException
- Specified by:
startMultiPartUpload
in 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:
uploadPart
in 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:
putObject
in 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:
commitMultiPartUpload
in interfaceorg.apache.flink.fs.s3.common.writer.S3AccessHelper
- Throws:
IOException
-
deleteObject
public boolean deleteObject(String key) throws IOException
- Specified by:
deleteObject
in interfaceorg.apache.flink.fs.s3.common.writer.S3AccessHelper
- Throws:
IOException
-
getObject
public long getObject(String key, File targetLocation) throws IOException
- Specified by:
getObject
in 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:
getObjectMetadata
in interfaceorg.apache.flink.fs.s3.common.writer.S3AccessHelper
- Throws:
IOException
-
-