blob: 69f008495f09880f484b078da41ef20f99967bc4 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_292) on Tue Jun 15 06:05:32 GMT 2021 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DistributedFileSystem.HdfsDataOutputStreamBuilder (Apache Hadoop HDFS Client 3.3.1 API)</title>
<meta name="date" content="2021-06-15">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="DistributedFileSystem.HdfsDataOutputStreamBuilder (Apache Hadoop HDFS Client 3.3.1 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/DistributedFileSystem.HdfsDataOutputStreamBuilder.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/hadoop/hdfs/DFSUtilClient.CorruptedBlocks.html" title="class in org.apache.hadoop.hdfs"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/hadoop/hdfs/NameNodeProxiesClient.ProxyAndInfo.html" title="class in org.apache.hadoop.hdfs"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" target="_top">Frames</a></li>
<li><a href="DistributedFileSystem.HdfsDataOutputStreamBuilder.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#fields.inherited.from.class.org.apache.hadoop.fs.impl.AbstractFSBuilderImpl">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.hadoop.hdfs</div>
<h2 title="Class DistributedFileSystem.HdfsDataOutputStreamBuilder" class="title">Class DistributedFileSystem.HdfsDataOutputStreamBuilder</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.hadoop.fs.impl.AbstractFSBuilderImpl&lt;S,B&gt;</li>
<li>
<ul class="inheritance">
<li>org.apache.hadoop.fs.FSDataOutputStreamBuilder&lt;org.apache.hadoop.fs.FSDataOutputStream,<a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a>&gt;</li>
<li>
<ul class="inheritance">
<li>org.apache.hadoop.hdfs.DistributedFileSystem.HdfsDataOutputStreamBuilder</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>org.apache.hadoop.fs.FSBuilder&lt;org.apache.hadoop.fs.FSDataOutputStream,<a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a>&gt;</dd>
</dl>
<dl>
<dt>Enclosing class:</dt>
<dd>org.apache.hadoop.hdfs.DistributedFileSystem</dd>
</dl>
<hr>
<br>
<pre>public static final class <span class="typeNameLabel">DistributedFileSystem.HdfsDataOutputStreamBuilder</span>
extends org.apache.hadoop.fs.FSDataOutputStreamBuilder&lt;org.apache.hadoop.fs.FSDataOutputStream,<a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a>&gt;</pre>
<div class="block">HdfsDataOutputStreamBuilder provides the HDFS-specific capabilities to
write file on HDFS.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.apache.hadoop.fs.impl.AbstractFSBuilderImpl">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.hadoop.fs.impl.AbstractFSBuilderImpl</h3>
<code>UNKNOWN_MANDATORY_KEY</code></li>
</ul>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>org.apache.hadoop.fs.FSDataOutputStream</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html#build--">build</a></span>()</code>
<div class="block">Build HdfsDataOutputStream to write.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html#ecPolicyName-java.lang.String-">ecPolicyName</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;policyName)</code>
<div class="block">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.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html#favoredNodes-java.net.InetSocketAddress:A-">favoredNodes</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/net/InetSocketAddress.html?is-external=true" title="class or interface in java.net">InetSocketAddress</a>[]&nbsp;nodes)</code>
<div class="block">Set favored DataNodes.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/8/docs/api/java/util/EnumSet.html?is-external=true" title="class or interface in java.util">EnumSet</a>&lt;org.apache.hadoop.fs.CreateFlag&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html#getFlags--">getFlags</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html#getThisBuilder--">getThisBuilder</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html#ignoreClientLocality--">ignoreClientLocality</a></span>()</code>
<div class="block">Advise that the first block replica be written without regard to the
client locality.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html#lazyPersist--">lazyPersist</a></span>()</code>
<div class="block">Create the block on transient storage if possible.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html#newBlock--">newBlock</a></span>()</code>
<div class="block">Append data to a new block instead of the end of the last partial block.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html#noLocalRack--">noLocalRack</a></span>()</code>
<div class="block">Advise that a block replica NOT be written to the local rack DataNode.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html#noLocalWrite--">noLocalWrite</a></span>()</code>
<div class="block">Advise that a block replica NOT be written to the local DataNode.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html#replicate--">replicate</a></span>()</code>
<div class="block">Enforce the file to be a replicated file, no matter what its parent
directory's replication or erasure coding policy is.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html#storagePolicyName-java.lang.String-">storagePolicyName</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;policyName)</code>
<div class="block">Enforce a file to follow the specified storage policy irrespective of the
storage policy of its parent directory.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html#syncBlock--">syncBlock</a></span>()</code>
<div class="block">Force closed blocks to disk.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.hadoop.fs.FSDataOutputStreamBuilder">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.hadoop.fs.FSDataOutputStreamBuilder</h3>
<code>append, blockSize, bufferSize, checksumOpt, create, getBlockSize, getBufferSize, getChecksumOpt, getFS, getPermission, getProgress, getReplication, isRecursive, overwrite, permission, progress, recursive, replication</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.hadoop.fs.impl.AbstractFSBuilderImpl">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.hadoop.fs.impl.AbstractFSBuilderImpl</h3>
<code>getMandatoryKeys, getOptionalPath, getOptionalPathHandle, getOptions, getPath, getPathHandle, must, must, must, must, must, must, opt, opt, opt, opt, opt, opt, rejectUnknownMandatoryKeys, rejectUnknownMandatoryKeys</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getThisBuilder--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getThisBuilder</h4>
<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a>&nbsp;getThisBuilder()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>getThisBuilder</code>&nbsp;in class&nbsp;<code>org.apache.hadoop.fs.FSDataOutputStreamBuilder&lt;org.apache.hadoop.fs.FSDataOutputStream,<a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a name="favoredNodes-java.net.InetSocketAddress:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>favoredNodes</h4>
<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a>&nbsp;favoredNodes(<a href="https://docs.oracle.com/javase/8/docs/api/javax/annotation/Nonnull.html?is-external=true" title="class or interface in javax.annotation">@Nonnull</a>
<a href="https://docs.oracle.com/javase/8/docs/api/java/net/InetSocketAddress.html?is-external=true" title="class or interface in java.net">InetSocketAddress</a>[]&nbsp;nodes)</pre>
<div class="block">Set favored DataNodes.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>nodes</code> - the addresses of the favored DataNodes.</dd>
</dl>
</li>
</ul>
<a name="syncBlock--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>syncBlock</h4>
<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a>&nbsp;syncBlock()</pre>
<div class="block">Force closed blocks to disk.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>for the details.</code></dd>
</dl>
</li>
</ul>
<a name="lazyPersist--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lazyPersist</h4>
<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a>&nbsp;lazyPersist()</pre>
<div class="block">Create the block on transient storage if possible.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>for the details.</code></dd>
</dl>
</li>
</ul>
<a name="newBlock--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newBlock</h4>
<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a>&nbsp;newBlock()</pre>
<div class="block">Append data to a new block instead of the end of the last partial block.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>for the details.</code></dd>
</dl>
</li>
</ul>
<a name="noLocalWrite--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>noLocalWrite</h4>
<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a>&nbsp;noLocalWrite()</pre>
<div class="block">Advise that a block replica NOT be written to the local DataNode.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>for the details.</code></dd>
</dl>
</li>
</ul>
<a name="noLocalRack--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>noLocalRack</h4>
<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a>&nbsp;noLocalRack()</pre>
<div class="block">Advise that a block replica NOT be written to the local rack DataNode.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>for the details.</code></dd>
</dl>
</li>
</ul>
<a name="storagePolicyName-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>storagePolicyName</h4>
<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a>&nbsp;storagePolicyName(<a href="https://docs.oracle.com/javase/8/docs/api/javax/annotation/Nonnull.html?is-external=true" title="class or interface in javax.annotation">@Nonnull</a>
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;policyName)</pre>
<div class="block">Enforce a file to follow the specified storage policy irrespective of the
storage policy of its parent directory.</div>
</li>
</ul>
<a name="ecPolicyName-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ecPolicyName</h4>
<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a>&nbsp;ecPolicyName(<a href="https://docs.oracle.com/javase/8/docs/api/javax/annotation/Nonnull.html?is-external=true" title="class or interface in javax.annotation">@Nonnull</a>
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;policyName)</pre>
<div class="block">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. Don't call this function and
enforceReplicate() in the same builder since they have conflict
of interest.</div>
</li>
</ul>
<a name="replicate--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replicate</h4>
<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a>&nbsp;replicate()</pre>
<div class="block">Enforce the file to be a replicated file, no matter what its parent
directory's replication or erasure coding policy is. Don't call this
function and setEcPolicyName() in the same builder since they have
conflict of interest.</div>
</li>
</ul>
<a name="ignoreClientLocality--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ignoreClientLocality</h4>
<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a>&nbsp;ignoreClientLocality()</pre>
<div class="block">Advise that the first block replica be written without regard to the
client locality.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>for the details.</code></dd>
</dl>
</li>
</ul>
<a name="getFlags--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFlags</h4>
<pre>protected&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/EnumSet.html?is-external=true" title="class or interface in java.util">EnumSet</a>&lt;org.apache.hadoop.fs.CreateFlag&gt;&nbsp;getFlags()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>getFlags</code>&nbsp;in class&nbsp;<code>org.apache.hadoop.fs.FSDataOutputStreamBuilder&lt;org.apache.hadoop.fs.FSDataOutputStream,<a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a name="build--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>build</h4>
<pre>public&nbsp;org.apache.hadoop.fs.FSDataOutputStream&nbsp;build()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Build HdfsDataOutputStream to write.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>build</code>&nbsp;in interface&nbsp;<code>org.apache.hadoop.fs.FSBuilder&lt;org.apache.hadoop.fs.FSDataOutputStream,<a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a>&gt;</code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>build</code>&nbsp;in class&nbsp;<code>org.apache.hadoop.fs.FSDataOutputStreamBuilder&lt;org.apache.hadoop.fs.FSDataOutputStream,<a href="../../../../org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" title="class in org.apache.hadoop.hdfs">DistributedFileSystem.HdfsDataOutputStreamBuilder</a>&gt;</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a fully-initialized OutputStream.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - on I/O errors.</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/DistributedFileSystem.HdfsDataOutputStreamBuilder.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/hadoop/hdfs/DFSUtilClient.CorruptedBlocks.html" title="class in org.apache.hadoop.hdfs"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/hadoop/hdfs/NameNodeProxiesClient.ProxyAndInfo.html" title="class in org.apache.hadoop.hdfs"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/hadoop/hdfs/DistributedFileSystem.HdfsDataOutputStreamBuilder.html" target="_top">Frames</a></li>
<li><a href="DistributedFileSystem.HdfsDataOutputStreamBuilder.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#fields.inherited.from.class.org.apache.hadoop.fs.impl.AbstractFSBuilderImpl">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2008&#x2013;2021 <a href="https://www.apache.org">Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>