public class OSSAccessor extends Object
Constructor and Description |
---|
OSSAccessor(org.apache.hadoop.fs.aliyun.oss.AliyunOSSFileSystem fs) |
Modifier and Type | Method and 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) |
public OSSAccessor(org.apache.hadoop.fs.aliyun.oss.AliyunOSSFileSystem fs)
public boolean deleteObject(String objectName) throws IOException
IOException
public com.aliyun.oss.model.CompleteMultipartUploadResult completeMultipartUpload(String objectName, String uploadId, List<com.aliyun.oss.model.PartETag> partETags)
public com.aliyun.oss.model.PartETag uploadPart(File file, String objectName, String uploadId, int idx) throws IOException
IOException
public void putObject(String objectName, File file) throws IOException
IOException
public void getObject(String objectName, String dstPath, long length) throws IOException
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.