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 |
ecPolicyName(String policyName)
Enforce the file to be a striped file with erasure coding policy
'policyName', no matter what its parent directory's replication
or erasure coding policy is.
|
DistributedFileSystem.HdfsDataOutputStreamBuilder |
favoredNodes(InetSocketAddress[] nodes)
Set favored DataNodes.
|
protected EnumSet<org.apache.hadoop.fs.CreateFlag> |
getFlags() |
protected DistributedFileSystem.HdfsDataOutputStreamBuilder |
getThisBuilder() |
DistributedFileSystem.HdfsDataOutputStreamBuilder |
ignoreClientLocality()
Advise that the first block replica be written without regard to the
client locality.
|
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 |
replicate()
Enforce the file to be a replicated file, no matter what its parent
directory's replication or erasure coding policy is.
|
DistributedFileSystem.HdfsDataOutputStreamBuilder |
syncBlock()
Force closed blocks to disk.
|
append, blockSize, bufferSize, checksumOpt, create, getBlockSize, getBufferSize, getChecksumOpt, getFS, getMandatoryKeys, getOptions, getPath, getPermission, getProgress, getReplication, isRecursive, must, must, must, must, must, must, opt, opt, opt, opt, opt, opt, 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.public DistributedFileSystem.HdfsDataOutputStreamBuilder ecPolicyName(@Nonnull String policyName)
public DistributedFileSystem.HdfsDataOutputStreamBuilder replicate()
public DistributedFileSystem.HdfsDataOutputStreamBuilder ignoreClientLocality()
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 © 2008–2022 Apache Software Foundation. All rights reserved.