public class OBSLowLevelOutputStream extends ObjectLowLevelOutputStream
ObjectLowLevelOutputStream implement for OBS.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
mUploadId
The upload id of this multipart upload.
|
mBucketName, mClosed, mFile, mHash, mKey, mLocalOutputStream, mPartitionOffset, mPartitionSize, mRetryPolicy, mSingleCharWrite, mTmpDirs, UPLOAD_THRESHOLD| Constructor and Description |
|---|
OBSLowLevelOutputStream(java.lang.String bucketName,
java.lang.String key,
com.obs.services.IObsClient obsClient,
com.google.common.util.concurrent.ListeningExecutorService executor,
AlluxioConfiguration ufsConf)
Constructs a new stream for writing a file.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
abortMultiPartUploadInternal() |
protected void |
completeMultiPartUploadInternal() |
protected void |
createEmptyObject(java.lang.String key) |
protected com.obs.services.IObsClient |
getClient() |
java.util.Optional<java.lang.String> |
getContentHash() |
protected void |
initMultiPartUploadInternal() |
protected void |
putObject(java.lang.String key,
java.io.File file,
java.lang.String md5) |
protected void |
uploadPartInternal(java.io.File file,
int partNumber,
boolean isLastPart,
java.lang.String md5) |
abortMultiPartUpload, close, flush, getPartNumber, uploadPart, uploadPart, waitForAllPartsUpload, write, write, writeprotected volatile java.lang.String mUploadId
public OBSLowLevelOutputStream(java.lang.String bucketName,
java.lang.String key,
com.obs.services.IObsClient obsClient,
com.google.common.util.concurrent.ListeningExecutorService executor,
AlluxioConfiguration ufsConf)
bucketName - the name of the bucketkey - the key of the fileobsClient - the OBS client to upload the file withexecutor - a thread pool executorufsConf - the object store under file system configurationprotected void uploadPartInternal(java.io.File file,
int partNumber,
boolean isLastPart,
java.lang.String md5)
throws java.io.IOException
uploadPartInternal in class ObjectLowLevelOutputStreamjava.io.IOExceptionprotected void initMultiPartUploadInternal()
throws java.io.IOException
initMultiPartUploadInternal in class ObjectLowLevelOutputStreamjava.io.IOExceptionprotected void completeMultiPartUploadInternal()
throws java.io.IOException
completeMultiPartUploadInternal in class ObjectLowLevelOutputStreamjava.io.IOExceptionprotected void abortMultiPartUploadInternal()
throws java.io.IOException
abortMultiPartUploadInternal in class ObjectLowLevelOutputStreamjava.io.IOExceptionprotected void createEmptyObject(java.lang.String key)
throws java.io.IOException
createEmptyObject in class ObjectLowLevelOutputStreamjava.io.IOExceptionprotected void putObject(java.lang.String key,
java.io.File file,
java.lang.String md5)
throws java.io.IOException
putObject in class ObjectLowLevelOutputStreamjava.io.IOExceptionprotected com.obs.services.IObsClient getClient()
public java.util.Optional<java.lang.String> getContentHash()
Copyright © 2023. All Rights Reserved.