public interface MultipartUploader
org.apache.hadoop.fs.impl.FileSystemMultipartUploader
Modifier and Type | Method and Description |
---|---|
void |
abort()
Aborts a multipart upload.
|
void |
complete()
Complete a multipart upload.
|
void |
flush()
Wait for the ongoing uploads to complete.
|
com.google.common.util.concurrent.ListenableFuture<Void> |
putPart(ByteBuffer b,
int partNumber)
Put part as part of a multipart upload.
|
void |
startUpload()
Initialize a multipart upload.
|
void startUpload() throws IOException
IOException
- IO failurecom.google.common.util.concurrent.ListenableFuture<Void> putPart(ByteBuffer b, int partNumber) throws IOException
b
- the byte array to put. The byte buffer must have been flipped and be ready to readpartNumber
- the part number of this file partIOException
- IO failurevoid complete() throws IOException
IOException
- IO failurevoid abort() throws IOException
IOException
- IO failurevoid flush() throws IOException
IOException
- IO failureCopyright © 2023. All Rights Reserved.