Package org.apache.flink.fs.osshadoop
Class OSSAccessor
- java.lang.Object
-
- org.apache.flink.fs.osshadoop.OSSAccessor
-
public class OSSAccessor extends Object
Core implementation of Aliyun OSS Filesystem for Flink. Provides the bridging logic between Hadoop's abstract filesystem and Aliyun OSS.
-
-
Constructor Summary
Constructors Constructor Description OSSAccessor(org.apache.hadoop.fs.aliyun.oss.AliyunOSSFileSystem fs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.aliyun.oss.model.CompleteMultipartUploadResult
completeMultipartUpload(String objectName, String uploadId, List<com.aliyun.oss.model.PartETag> partETags)
boolean
deleteObject(String objectName)
void
getObject(String objectName, String dstPath, long length)
Path
objectToPath(String object)
String
pathToObject(Path path)
void
putObject(String objectName, File file)
String
startMultipartUpload(String objectName)
com.aliyun.oss.model.PartETag
uploadPart(File file, String objectName, String uploadId, int idx)
-
-
-
Method Detail
-
deleteObject
public boolean deleteObject(String objectName) throws IOException
- Throws:
IOException
-
completeMultipartUpload
public com.aliyun.oss.model.CompleteMultipartUploadResult completeMultipartUpload(String objectName, String uploadId, List<com.aliyun.oss.model.PartETag> partETags)
-
uploadPart
public com.aliyun.oss.model.PartETag uploadPart(File file, String objectName, String uploadId, int idx) throws IOException
- Throws:
IOException
-
putObject
public void putObject(String objectName, File file) throws IOException
- Throws:
IOException
-
getObject
public void getObject(String objectName, String dstPath, long length) throws IOException
- Throws:
IOException
-
-