S
- B
- public interface MultipartUploaderBuilder<S extends MultipartUploader,B extends MultipartUploaderBuilder<S,B>> extends FSBuilder<S,B>
Modifier and Type | Method and Description |
---|---|
B |
append()
Append to an existing file (optional operation).
|
B |
blockSize(long blkSize)
Set block size.
|
B |
bufferSize(int bufSize)
Set the size of the buffer to be used.
|
S |
build()
Create the FSDataOutputStream to write on the file system.
|
B |
checksumOpt(Options.ChecksumOpt chksumOpt)
Set checksum opt.
|
B |
create()
Create an FSDataOutputStream at the specified path.
|
B |
overwrite(boolean overwrite)
Set to true to overwrite the existing file.
|
B |
permission(FsPermission perm)
Set permission for the file.
|
B |
replication(short replica)
Set replication factor.
|
B permission(@Nonnull FsPermission perm)
B bufferSize(int bufSize)
B replication(short replica)
B blockSize(long blkSize)
B create()
B overwrite(boolean overwrite)
build()
if the file exists.B append()
B checksumOpt(@Nonnull Options.ChecksumOpt chksumOpt)
S build() throws IllegalArgumentException, IOException
build
in interface FSBuilder<S extends MultipartUploader,B extends MultipartUploaderBuilder<S,B>>
IllegalArgumentException
- if the parameters are not valid.IOException
- on errors when file system creates or appends the file.Copyright © 2008–2021 Apache Software Foundation. All rights reserved.