public static final class DistributedFileSystem.HdfsDataOutputStreamBuilder extends org.apache.hadoop.fs.FSDataOutputStreamBuilder<org.apache.hadoop.fs.FSDataOutputStream,DistributedFileSystem.HdfsDataOutputStreamBuilder>
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.fs.FSDataOutputStream |
build()
Build HdfsDataOutputStream to write.
|
DistributedFileSystem.HdfsDataOutputStreamBuilder |
favoredNodes(InetSocketAddress[] nodes)
Set favored DataNodes.
|
protected EnumSet<org.apache.hadoop.fs.CreateFlag> |
getFlags() |
protected DistributedFileSystem.HdfsDataOutputStreamBuilder |
getThisBuilder() |
DistributedFileSystem.HdfsDataOutputStreamBuilder |
lazyPersist()
Create the block on transient storage if possible.
|
DistributedFileSystem.HdfsDataOutputStreamBuilder |
newBlock()
Append data to a new block instead of the end of the last partial block.
|
DistributedFileSystem.HdfsDataOutputStreamBuilder |
noLocalWrite()
Advise that a block replica NOT be written to the local DataNode.
|
DistributedFileSystem.HdfsDataOutputStreamBuilder |
syncBlock()
Force closed blocks to disk.
|
append, blockSize, bufferSize, checksumOpt, create, getBlockSize, getBufferSize, getChecksumOpt, getFS, getPath, getPermission, getProgress, getReplication, isRecursive, overwrite, permission, progress, recursive, replicationprotected DistributedFileSystem.HdfsDataOutputStreamBuilder getThisBuilder()
getThisBuilder in class org.apache.hadoop.fs.FSDataOutputStreamBuilder<org.apache.hadoop.fs.FSDataOutputStream,DistributedFileSystem.HdfsDataOutputStreamBuilder>public DistributedFileSystem.HdfsDataOutputStreamBuilder favoredNodes(@Nonnull InetSocketAddress[] nodes)
nodes - the addresses of the favored DataNodes.public DistributedFileSystem.HdfsDataOutputStreamBuilder syncBlock()
for the details.public DistributedFileSystem.HdfsDataOutputStreamBuilder lazyPersist()
for the details.public DistributedFileSystem.HdfsDataOutputStreamBuilder newBlock()
for the details.public DistributedFileSystem.HdfsDataOutputStreamBuilder noLocalWrite()
for the details.protected EnumSet<org.apache.hadoop.fs.CreateFlag> getFlags()
getFlags in class org.apache.hadoop.fs.FSDataOutputStreamBuilder<org.apache.hadoop.fs.FSDataOutputStream,DistributedFileSystem.HdfsDataOutputStreamBuilder>public org.apache.hadoop.fs.FSDataOutputStream build()
throws IOException
build in class org.apache.hadoop.fs.FSDataOutputStreamBuilder<org.apache.hadoop.fs.FSDataOutputStream,DistributedFileSystem.HdfsDataOutputStreamBuilder>IOException - on I/O errors.Copyright © 2022 Apache Software Foundation. All rights reserved.