You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by gi...@apache.org on 2018/04/20 14:47:06 UTC

[25/27] hbase-site git commit: Published site at 914de1141699142bce1486468a742233d9440b23.

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1facf1d3/apidocs/org/apache/hadoop/hbase/client/RowMutations.html
----------------------------------------------------------------------
diff --git a/apidocs/org/apache/hadoop/hbase/client/RowMutations.html b/apidocs/org/apache/hadoop/hbase/client/RowMutations.html
index 7142b04..46db553 100644
--- a/apidocs/org/apache/hadoop/hbase/client/RowMutations.html
+++ b/apidocs/org/apache/hadoop/hbase/client/RowMutations.html
@@ -114,7 +114,7 @@ var activeTableTab = "activeTableTab";
 <hr>
 <br>
 <pre>@InterfaceAudience.Public
-public class <a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.41">RowMutations</a>
+public class <a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.42">RowMutations</a>
 extends <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>
 implements <a href="../../../../../org/apache/hadoop/hbase/client/Row.html" title="interface in org.apache.hadoop.hbase.client">Row</a></pre>
 <div class="block">Performs multiple mutations atomically on a single row.
@@ -284,7 +284,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/Row.html" titl
 <ul class="blockList">
 <li class="blockList">
 <h4>RowMutations</h4>
-<pre>public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.60">RowMutations</a>(byte[]&nbsp;row)</pre>
+<pre>public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.61">RowMutations</a>(byte[]&nbsp;row)</pre>
 </li>
 </ul>
 <a name="RowMutations-byte:A-int-">
@@ -293,7 +293,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/Row.html" titl
 <ul class="blockListLast">
 <li class="blockList">
 <h4>RowMutations</h4>
-<pre>public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.68">RowMutations</a>(byte[]&nbsp;row,
+<pre>public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.69">RowMutations</a>(byte[]&nbsp;row,
                     int&nbsp;initialCapacity)</pre>
 <div class="block">Create an atomic mutation for the specified row.</div>
 <dl>
@@ -317,7 +317,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/Row.html" titl
 <ul class="blockList">
 <li class="blockList">
 <h4>of</h4>
-<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/RowMutations.html" title="class in org.apache.hadoop.hbase.client">RowMutations</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.49">of</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;? extends <a href="../../../../../org/apache/hadoop/hbase/client/Mutation.html" title="class in org.apache.hadoop.hbase.client">Mutation</a>&gt;&nbsp;mutations)
+<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/RowMutations.html" title="class in org.apache.hadoop.hbase.client">RowMutations</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.50">of</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;? extends <a href="../../../../../org/apache/hadoop/hbase/client/Mutation.html" title="class in org.apache.hadoop.hbase.client">Mutation</a>&gt;&nbsp;mutations)
                        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">Create a <a href="../../../../../org/apache/hadoop/hbase/client/RowMutations.html" title="class in org.apache.hadoop.hbase.client"><code>RowMutations</code></a> with the specified mutations.</div>
 <dl>
@@ -337,7 +337,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/Row.html" titl
 <li class="blockList">
 <h4>add</h4>
 <pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.85">add</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Put.html" title="class in org.apache.hadoop.hbase.client">Put</a>&nbsp;p)
+public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.86">add</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Put.html" title="class in org.apache.hadoop.hbase.client">Put</a>&nbsp;p)
                      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"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">since 2.0 version and will be removed in 3.0 version.
              use <a href="../../../../../org/apache/hadoop/hbase/client/RowMutations.html#add-org.apache.hadoop.hbase.client.Mutation-"><code>add(Mutation)</code></a></span></div>
@@ -357,7 +357,7 @@ public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/c
 <li class="blockList">
 <h4>add</h4>
 <pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.97">add</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Delete.html" title="class in org.apache.hadoop.hbase.client">Delete</a>&nbsp;d)
+public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.98">add</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Delete.html" title="class in org.apache.hadoop.hbase.client">Delete</a>&nbsp;d)
                      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"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">since 2.0 version and will be removed in 3.0 version.
              use <a href="../../../../../org/apache/hadoop/hbase/client/RowMutations.html#add-org.apache.hadoop.hbase.client.Mutation-"><code>add(Mutation)</code></a></span></div>
@@ -376,7 +376,7 @@ public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/c
 <ul class="blockList">
 <li class="blockList">
 <h4>add</h4>
-<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/RowMutations.html" title="class in org.apache.hadoop.hbase.client">RowMutations</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.107">add</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Mutation.html" title="class in org.apache.hadoop.hbase.client">Mutation</a>&nbsp;mutation)
+<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/RowMutations.html" title="class in org.apache.hadoop.hbase.client">RowMutations</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.108">add</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Mutation.html" title="class in org.apache.hadoop.hbase.client">Mutation</a>&nbsp;mutation)
                  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">Currently only supports <a href="../../../../../org/apache/hadoop/hbase/client/Put.html" title="class in org.apache.hadoop.hbase.client"><code>Put</code></a> and <a href="../../../../../org/apache/hadoop/hbase/client/Delete.html" title="class in org.apache.hadoop.hbase.client"><code>Delete</code></a> mutations.</div>
 <dl>
@@ -393,7 +393,7 @@ public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/c
 <ul class="blockList">
 <li class="blockList">
 <h4>add</h4>
-<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/RowMutations.html" title="class in org.apache.hadoop.hbase.client">RowMutations</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.117">add</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;? extends <a href="../../../../../org/apache/hadoop/hbase/client/Mutation.html" title="class in org.apache.hadoop.hbase.client">Mutation</a>&gt;&nbsp;mutations)
+<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/RowMutations.html" title="class in org.apache.hadoop.hbase.client">RowMutations</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.118">add</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;? extends <a href="../../../../../org/apache/hadoop/hbase/client/Mutation.html" title="class in org.apache.hadoop.hbase.client">Mutation</a>&gt;&nbsp;mutations)
                  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">Currently only supports <a href="../../../../../org/apache/hadoop/hbase/client/Put.html" title="class in org.apache.hadoop.hbase.client"><code>Put</code></a> and <a href="../../../../../org/apache/hadoop/hbase/client/Delete.html" title="class in org.apache.hadoop.hbase.client"><code>Delete</code></a> mutations.</div>
 <dl>
@@ -411,7 +411,7 @@ public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/c
 <li class="blockList">
 <h4>compareTo</h4>
 <pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.135">compareTo</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Row.html" title="interface in org.apache.hadoop.hbase.client">Row</a>&nbsp;i)</pre>
+public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.136">compareTo</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Row.html" title="interface in org.apache.hadoop.hbase.client">Row</a>&nbsp;i)</pre>
 <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">As of release 2.0.0, this will be removed in HBase 3.0.0.
              Use <a href="../../../../../org/apache/hadoop/hbase/client/Row.html#COMPARATOR"><code>Row.COMPARATOR</code></a> instead</span></div>
 <dl>
@@ -429,7 +429,7 @@ public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/cl
 <li class="blockList">
 <h4>equals</h4>
 <pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.145">equals</a>(<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>&nbsp;obj)</pre>
+public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.146">equals</a>(<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>&nbsp;obj)</pre>
 <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">As of release 2.0.0, this will be removed in HBase 3.0.0.
              No replacement</span></div>
 <dl>
@@ -445,7 +445,7 @@ public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbas
 <li class="blockList">
 <h4>hashCode</h4>
 <pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.160">hashCode</a>()</pre>
+public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.161">hashCode</a>()</pre>
 <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">As of release 2.0.0, this will be removed in HBase 3.0.0.
              No replacement</span></div>
 <dl>
@@ -460,7 +460,7 @@ public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/cl
 <ul class="blockList">
 <li class="blockList">
 <h4>getRow</h4>
-<pre>public&nbsp;byte[]&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.165">getRow</a>()</pre>
+<pre>public&nbsp;byte[]&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.166">getRow</a>()</pre>
 <dl>
 <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
 <dd><code><a href="../../../../../org/apache/hadoop/hbase/client/Row.html#getRow--">getRow</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/client/Row.html" title="interface in org.apache.hadoop.hbase.client">Row</a></code></dd>
@@ -475,7 +475,7 @@ public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/cl
 <ul class="blockList">
 <li class="blockList">
 <h4>getMutations</h4>
-<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/Mutation.html" title="class in org.apache.hadoop.hbase.client">Mutation</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.172">getMutations</a>()</pre>
+<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/Mutation.html" title="class in org.apache.hadoop.hbase.client">Mutation</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.173">getMutations</a>()</pre>
 <dl>
 <dt><span class="returnLabel">Returns:</span></dt>
 <dd>An unmodifiable list of the current mutations.</dd>
@@ -488,7 +488,7 @@ public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/cl
 <ul class="blockListLast">
 <li class="blockList">
 <h4>getMaxPriority</h4>
-<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.176">getMaxPriority</a>()</pre>
+<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/RowMutations.html#line.177">getMaxPriority</a>()</pre>
 </li>
 </ul>
 </li>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1facf1d3/apidocs/src-html/org/apache/hadoop/hbase/client/RowMutations.html
----------------------------------------------------------------------
diff --git a/apidocs/src-html/org/apache/hadoop/hbase/client/RowMutations.html b/apidocs/src-html/org/apache/hadoop/hbase/client/RowMutations.html
index 76c6859..df06090 100644
--- a/apidocs/src-html/org/apache/hadoop/hbase/client/RowMutations.html
+++ b/apidocs/src-html/org/apache/hadoop/hbase/client/RowMutations.html
@@ -31,164 +31,165 @@
 <span class="sourceLineNo">023</span>import java.util.Collections;<a name="line.23"></a>
 <span class="sourceLineNo">024</span>import java.util.List;<a name="line.24"></a>
 <span class="sourceLineNo">025</span><a name="line.25"></a>
-<span class="sourceLineNo">026</span>import org.apache.commons.collections.CollectionUtils;<a name="line.26"></a>
-<span class="sourceLineNo">027</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.27"></a>
-<span class="sourceLineNo">028</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.28"></a>
-<span class="sourceLineNo">029</span><a name="line.29"></a>
-<span class="sourceLineNo">030</span>/**<a name="line.30"></a>
-<span class="sourceLineNo">031</span> * Performs multiple mutations atomically on a single row.<a name="line.31"></a>
-<span class="sourceLineNo">032</span> * Currently {@link Put} and {@link Delete} are supported.<a name="line.32"></a>
-<span class="sourceLineNo">033</span> *<a name="line.33"></a>
-<span class="sourceLineNo">034</span> * The mutations are performed in the order in which they<a name="line.34"></a>
-<span class="sourceLineNo">035</span> * were added.<a name="line.35"></a>
-<span class="sourceLineNo">036</span> *<a name="line.36"></a>
-<span class="sourceLineNo">037</span> * &lt;p&gt;We compare and equate mutations based off their row so be careful putting RowMutations<a name="line.37"></a>
-<span class="sourceLineNo">038</span> * into Sets or using them as keys in Maps.<a name="line.38"></a>
-<span class="sourceLineNo">039</span> */<a name="line.39"></a>
-<span class="sourceLineNo">040</span>@InterfaceAudience.Public<a name="line.40"></a>
-<span class="sourceLineNo">041</span>public class RowMutations implements Row {<a name="line.41"></a>
-<span class="sourceLineNo">042</span><a name="line.42"></a>
-<span class="sourceLineNo">043</span>  /**<a name="line.43"></a>
-<span class="sourceLineNo">044</span>   * Create a {@link RowMutations} with the specified mutations.<a name="line.44"></a>
-<span class="sourceLineNo">045</span>   * @param mutations the mutations to send<a name="line.45"></a>
-<span class="sourceLineNo">046</span>   * @return RowMutations<a name="line.46"></a>
-<span class="sourceLineNo">047</span>   * @throws IOException if any row in mutations is different to another<a name="line.47"></a>
-<span class="sourceLineNo">048</span>   */<a name="line.48"></a>
-<span class="sourceLineNo">049</span>  public static RowMutations of(List&lt;? extends Mutation&gt; mutations) throws IOException {<a name="line.49"></a>
-<span class="sourceLineNo">050</span>    if (CollectionUtils.isEmpty(mutations)) {<a name="line.50"></a>
-<span class="sourceLineNo">051</span>      throw new IllegalArgumentException("Cannot instantiate a RowMutations by empty list");<a name="line.51"></a>
-<span class="sourceLineNo">052</span>    }<a name="line.52"></a>
-<span class="sourceLineNo">053</span>    return new RowMutations(mutations.get(0).getRow(), mutations.size())<a name="line.53"></a>
-<span class="sourceLineNo">054</span>        .add(mutations);<a name="line.54"></a>
-<span class="sourceLineNo">055</span>  }<a name="line.55"></a>
-<span class="sourceLineNo">056</span><a name="line.56"></a>
-<span class="sourceLineNo">057</span>  private final List&lt;Mutation&gt; mutations;<a name="line.57"></a>
-<span class="sourceLineNo">058</span>  private final byte [] row;<a name="line.58"></a>
-<span class="sourceLineNo">059</span><a name="line.59"></a>
-<span class="sourceLineNo">060</span>  public RowMutations(byte [] row) {<a name="line.60"></a>
-<span class="sourceLineNo">061</span>    this(row, -1);<a name="line.61"></a>
-<span class="sourceLineNo">062</span>  }<a name="line.62"></a>
-<span class="sourceLineNo">063</span>  /**<a name="line.63"></a>
-<span class="sourceLineNo">064</span>   * Create an atomic mutation for the specified row.<a name="line.64"></a>
-<span class="sourceLineNo">065</span>   * @param row row key<a name="line.65"></a>
-<span class="sourceLineNo">066</span>   * @param initialCapacity the initial capacity of the RowMutations<a name="line.66"></a>
-<span class="sourceLineNo">067</span>   */<a name="line.67"></a>
-<span class="sourceLineNo">068</span>  public RowMutations(byte [] row, int initialCapacity) {<a name="line.68"></a>
-<span class="sourceLineNo">069</span>    this.row = Bytes.copy(Mutation.checkRow(row));<a name="line.69"></a>
-<span class="sourceLineNo">070</span>    if (initialCapacity &lt;= 0) {<a name="line.70"></a>
-<span class="sourceLineNo">071</span>      this.mutations = new ArrayList&lt;&gt;();<a name="line.71"></a>
-<span class="sourceLineNo">072</span>    } else {<a name="line.72"></a>
-<span class="sourceLineNo">073</span>      this.mutations = new ArrayList&lt;&gt;(initialCapacity);<a name="line.73"></a>
-<span class="sourceLineNo">074</span>    }<a name="line.74"></a>
-<span class="sourceLineNo">075</span>  }<a name="line.75"></a>
-<span class="sourceLineNo">076</span><a name="line.76"></a>
-<span class="sourceLineNo">077</span>  /**<a name="line.77"></a>
-<span class="sourceLineNo">078</span>   * Add a {@link Put} operation to the list of mutations<a name="line.78"></a>
-<span class="sourceLineNo">079</span>   * @param p The {@link Put} to add<a name="line.79"></a>
-<span class="sourceLineNo">080</span>   * @throws IOException if the row of added mutation doesn't match the original row<a name="line.80"></a>
-<span class="sourceLineNo">081</span>   * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.81"></a>
-<span class="sourceLineNo">082</span>   *             use {@link #add(Mutation)}<a name="line.82"></a>
-<span class="sourceLineNo">083</span>   */<a name="line.83"></a>
-<span class="sourceLineNo">084</span>  @Deprecated<a name="line.84"></a>
-<span class="sourceLineNo">085</span>  public void add(Put p) throws IOException {<a name="line.85"></a>
-<span class="sourceLineNo">086</span>    add((Mutation) p);<a name="line.86"></a>
-<span class="sourceLineNo">087</span>  }<a name="line.87"></a>
-<span class="sourceLineNo">088</span><a name="line.88"></a>
-<span class="sourceLineNo">089</span>  /**<a name="line.89"></a>
-<span class="sourceLineNo">090</span>   * Add a {@link Delete} operation to the list of mutations<a name="line.90"></a>
-<span class="sourceLineNo">091</span>   * @param d The {@link Delete} to add<a name="line.91"></a>
-<span class="sourceLineNo">092</span>   * @throws IOException if the row of added mutation doesn't match the original row<a name="line.92"></a>
-<span class="sourceLineNo">093</span>   * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.93"></a>
-<span class="sourceLineNo">094</span>   *             use {@link #add(Mutation)}<a name="line.94"></a>
-<span class="sourceLineNo">095</span>   */<a name="line.95"></a>
-<span class="sourceLineNo">096</span>  @Deprecated<a name="line.96"></a>
-<span class="sourceLineNo">097</span>  public void add(Delete d) throws IOException {<a name="line.97"></a>
-<span class="sourceLineNo">098</span>    add((Mutation) d);<a name="line.98"></a>
-<span class="sourceLineNo">099</span>  }<a name="line.99"></a>
-<span class="sourceLineNo">100</span><a name="line.100"></a>
-<span class="sourceLineNo">101</span>  /**<a name="line.101"></a>
-<span class="sourceLineNo">102</span>   * Currently only supports {@link Put} and {@link Delete} mutations.<a name="line.102"></a>
-<span class="sourceLineNo">103</span>   *<a name="line.103"></a>
-<span class="sourceLineNo">104</span>   * @param mutation The data to send.<a name="line.104"></a>
-<span class="sourceLineNo">105</span>   * @throws IOException if the row of added mutation doesn't match the original row<a name="line.105"></a>
-<span class="sourceLineNo">106</span>   */<a name="line.106"></a>
-<span class="sourceLineNo">107</span>  public RowMutations add(Mutation mutation) throws IOException {<a name="line.107"></a>
-<span class="sourceLineNo">108</span>    return add(Collections.singletonList(mutation));<a name="line.108"></a>
-<span class="sourceLineNo">109</span>  }<a name="line.109"></a>
-<span class="sourceLineNo">110</span><a name="line.110"></a>
-<span class="sourceLineNo">111</span>  /**<a name="line.111"></a>
-<span class="sourceLineNo">112</span>   * Currently only supports {@link Put} and {@link Delete} mutations.<a name="line.112"></a>
-<span class="sourceLineNo">113</span>   *<a name="line.113"></a>
-<span class="sourceLineNo">114</span>   * @param mutations The data to send.<a name="line.114"></a>
-<span class="sourceLineNo">115</span>   * @throws IOException if the row of added mutation doesn't match the original row<a name="line.115"></a>
-<span class="sourceLineNo">116</span>   */<a name="line.116"></a>
-<span class="sourceLineNo">117</span>  public RowMutations add(List&lt;? extends Mutation&gt; mutations) throws IOException {<a name="line.117"></a>
-<span class="sourceLineNo">118</span>    for (Mutation mutation : mutations) {<a name="line.118"></a>
-<span class="sourceLineNo">119</span>      if (!Bytes.equals(row, mutation.getRow())) {<a name="line.119"></a>
-<span class="sourceLineNo">120</span>        throw new WrongRowIOException("The row in the recently added Put/Delete &lt;" +<a name="line.120"></a>
-<span class="sourceLineNo">121</span>          Bytes.toStringBinary(mutation.getRow()) + "&gt; doesn't match the original one &lt;" +<a name="line.121"></a>
-<span class="sourceLineNo">122</span>          Bytes.toStringBinary(this.row) + "&gt;");<a name="line.122"></a>
-<span class="sourceLineNo">123</span>      }<a name="line.123"></a>
-<span class="sourceLineNo">124</span>    }<a name="line.124"></a>
-<span class="sourceLineNo">125</span>    this.mutations.addAll(mutations);<a name="line.125"></a>
-<span class="sourceLineNo">126</span>    return this;<a name="line.126"></a>
-<span class="sourceLineNo">127</span>  }<a name="line.127"></a>
-<span class="sourceLineNo">128</span><a name="line.128"></a>
-<span class="sourceLineNo">129</span>  /**<a name="line.129"></a>
-<span class="sourceLineNo">130</span>   * @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0.<a name="line.130"></a>
-<span class="sourceLineNo">131</span>   *             Use {@link Row#COMPARATOR} instead<a name="line.131"></a>
-<span class="sourceLineNo">132</span>   */<a name="line.132"></a>
-<span class="sourceLineNo">133</span>  @Deprecated<a name="line.133"></a>
-<span class="sourceLineNo">134</span>  @Override<a name="line.134"></a>
-<span class="sourceLineNo">135</span>  public int compareTo(Row i) {<a name="line.135"></a>
-<span class="sourceLineNo">136</span>    return Bytes.compareTo(this.getRow(), i.getRow());<a name="line.136"></a>
-<span class="sourceLineNo">137</span>  }<a name="line.137"></a>
-<span class="sourceLineNo">138</span><a name="line.138"></a>
-<span class="sourceLineNo">139</span>  /**<a name="line.139"></a>
-<span class="sourceLineNo">140</span>   * @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0.<a name="line.140"></a>
-<span class="sourceLineNo">141</span>   *             No replacement<a name="line.141"></a>
-<span class="sourceLineNo">142</span>   */<a name="line.142"></a>
-<span class="sourceLineNo">143</span>  @Deprecated<a name="line.143"></a>
-<span class="sourceLineNo">144</span>  @Override<a name="line.144"></a>
-<span class="sourceLineNo">145</span>  public boolean equals(Object obj) {<a name="line.145"></a>
-<span class="sourceLineNo">146</span>    if (obj == this) return true;<a name="line.146"></a>
-<span class="sourceLineNo">147</span>    if (obj instanceof RowMutations) {<a name="line.147"></a>
-<span class="sourceLineNo">148</span>      RowMutations other = (RowMutations)obj;<a name="line.148"></a>
-<span class="sourceLineNo">149</span>      return compareTo(other) == 0;<a name="line.149"></a>
-<span class="sourceLineNo">150</span>    }<a name="line.150"></a>
-<span class="sourceLineNo">151</span>    return false;<a name="line.151"></a>
-<span class="sourceLineNo">152</span>  }<a name="line.152"></a>
-<span class="sourceLineNo">153</span><a name="line.153"></a>
-<span class="sourceLineNo">154</span>  /**<a name="line.154"></a>
-<span class="sourceLineNo">155</span>   * @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0.<a name="line.155"></a>
-<span class="sourceLineNo">156</span>   *             No replacement<a name="line.156"></a>
-<span class="sourceLineNo">157</span>   */<a name="line.157"></a>
-<span class="sourceLineNo">158</span>  @Deprecated<a name="line.158"></a>
-<span class="sourceLineNo">159</span>  @Override<a name="line.159"></a>
-<span class="sourceLineNo">160</span>  public int hashCode(){<a name="line.160"></a>
-<span class="sourceLineNo">161</span>    return Arrays.hashCode(row);<a name="line.161"></a>
-<span class="sourceLineNo">162</span>  }<a name="line.162"></a>
-<span class="sourceLineNo">163</span><a name="line.163"></a>
-<span class="sourceLineNo">164</span>  @Override<a name="line.164"></a>
-<span class="sourceLineNo">165</span>  public byte[] getRow() {<a name="line.165"></a>
-<span class="sourceLineNo">166</span>    return row;<a name="line.166"></a>
-<span class="sourceLineNo">167</span>  }<a name="line.167"></a>
-<span class="sourceLineNo">168</span><a name="line.168"></a>
-<span class="sourceLineNo">169</span>  /**<a name="line.169"></a>
-<span class="sourceLineNo">170</span>   * @return An unmodifiable list of the current mutations.<a name="line.170"></a>
-<span class="sourceLineNo">171</span>   */<a name="line.171"></a>
-<span class="sourceLineNo">172</span>  public List&lt;Mutation&gt; getMutations() {<a name="line.172"></a>
-<span class="sourceLineNo">173</span>    return Collections.unmodifiableList(mutations);<a name="line.173"></a>
-<span class="sourceLineNo">174</span>  }<a name="line.174"></a>
-<span class="sourceLineNo">175</span><a name="line.175"></a>
-<span class="sourceLineNo">176</span>  public int getMaxPriority() {<a name="line.176"></a>
-<span class="sourceLineNo">177</span>    int maxPriority = Integer.MIN_VALUE;<a name="line.177"></a>
-<span class="sourceLineNo">178</span>    for (Mutation mutation : mutations) {<a name="line.178"></a>
-<span class="sourceLineNo">179</span>      maxPriority = Math.max(maxPriority, mutation.getPriority());<a name="line.179"></a>
-<span class="sourceLineNo">180</span>    }<a name="line.180"></a>
-<span class="sourceLineNo">181</span>    return maxPriority;<a name="line.181"></a>
-<span class="sourceLineNo">182</span>  }<a name="line.182"></a>
-<span class="sourceLineNo">183</span>}<a name="line.183"></a>
+<span class="sourceLineNo">026</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.27"></a>
+<span class="sourceLineNo">028</span><a name="line.28"></a>
+<span class="sourceLineNo">029</span>import org.apache.hbase.thirdparty.org.apache.commons.collections4.CollectionUtils;<a name="line.29"></a>
+<span class="sourceLineNo">030</span><a name="line.30"></a>
+<span class="sourceLineNo">031</span>/**<a name="line.31"></a>
+<span class="sourceLineNo">032</span> * Performs multiple mutations atomically on a single row.<a name="line.32"></a>
+<span class="sourceLineNo">033</span> * Currently {@link Put} and {@link Delete} are supported.<a name="line.33"></a>
+<span class="sourceLineNo">034</span> *<a name="line.34"></a>
+<span class="sourceLineNo">035</span> * The mutations are performed in the order in which they<a name="line.35"></a>
+<span class="sourceLineNo">036</span> * were added.<a name="line.36"></a>
+<span class="sourceLineNo">037</span> *<a name="line.37"></a>
+<span class="sourceLineNo">038</span> * &lt;p&gt;We compare and equate mutations based off their row so be careful putting RowMutations<a name="line.38"></a>
+<span class="sourceLineNo">039</span> * into Sets or using them as keys in Maps.<a name="line.39"></a>
+<span class="sourceLineNo">040</span> */<a name="line.40"></a>
+<span class="sourceLineNo">041</span>@InterfaceAudience.Public<a name="line.41"></a>
+<span class="sourceLineNo">042</span>public class RowMutations implements Row {<a name="line.42"></a>
+<span class="sourceLineNo">043</span><a name="line.43"></a>
+<span class="sourceLineNo">044</span>  /**<a name="line.44"></a>
+<span class="sourceLineNo">045</span>   * Create a {@link RowMutations} with the specified mutations.<a name="line.45"></a>
+<span class="sourceLineNo">046</span>   * @param mutations the mutations to send<a name="line.46"></a>
+<span class="sourceLineNo">047</span>   * @return RowMutations<a name="line.47"></a>
+<span class="sourceLineNo">048</span>   * @throws IOException if any row in mutations is different to another<a name="line.48"></a>
+<span class="sourceLineNo">049</span>   */<a name="line.49"></a>
+<span class="sourceLineNo">050</span>  public static RowMutations of(List&lt;? extends Mutation&gt; mutations) throws IOException {<a name="line.50"></a>
+<span class="sourceLineNo">051</span>    if (CollectionUtils.isEmpty(mutations)) {<a name="line.51"></a>
+<span class="sourceLineNo">052</span>      throw new IllegalArgumentException("Cannot instantiate a RowMutations by empty list");<a name="line.52"></a>
+<span class="sourceLineNo">053</span>    }<a name="line.53"></a>
+<span class="sourceLineNo">054</span>    return new RowMutations(mutations.get(0).getRow(), mutations.size())<a name="line.54"></a>
+<span class="sourceLineNo">055</span>        .add(mutations);<a name="line.55"></a>
+<span class="sourceLineNo">056</span>  }<a name="line.56"></a>
+<span class="sourceLineNo">057</span><a name="line.57"></a>
+<span class="sourceLineNo">058</span>  private final List&lt;Mutation&gt; mutations;<a name="line.58"></a>
+<span class="sourceLineNo">059</span>  private final byte [] row;<a name="line.59"></a>
+<span class="sourceLineNo">060</span><a name="line.60"></a>
+<span class="sourceLineNo">061</span>  public RowMutations(byte [] row) {<a name="line.61"></a>
+<span class="sourceLineNo">062</span>    this(row, -1);<a name="line.62"></a>
+<span class="sourceLineNo">063</span>  }<a name="line.63"></a>
+<span class="sourceLineNo">064</span>  /**<a name="line.64"></a>
+<span class="sourceLineNo">065</span>   * Create an atomic mutation for the specified row.<a name="line.65"></a>
+<span class="sourceLineNo">066</span>   * @param row row key<a name="line.66"></a>
+<span class="sourceLineNo">067</span>   * @param initialCapacity the initial capacity of the RowMutations<a name="line.67"></a>
+<span class="sourceLineNo">068</span>   */<a name="line.68"></a>
+<span class="sourceLineNo">069</span>  public RowMutations(byte [] row, int initialCapacity) {<a name="line.69"></a>
+<span class="sourceLineNo">070</span>    this.row = Bytes.copy(Mutation.checkRow(row));<a name="line.70"></a>
+<span class="sourceLineNo">071</span>    if (initialCapacity &lt;= 0) {<a name="line.71"></a>
+<span class="sourceLineNo">072</span>      this.mutations = new ArrayList&lt;&gt;();<a name="line.72"></a>
+<span class="sourceLineNo">073</span>    } else {<a name="line.73"></a>
+<span class="sourceLineNo">074</span>      this.mutations = new ArrayList&lt;&gt;(initialCapacity);<a name="line.74"></a>
+<span class="sourceLineNo">075</span>    }<a name="line.75"></a>
+<span class="sourceLineNo">076</span>  }<a name="line.76"></a>
+<span class="sourceLineNo">077</span><a name="line.77"></a>
+<span class="sourceLineNo">078</span>  /**<a name="line.78"></a>
+<span class="sourceLineNo">079</span>   * Add a {@link Put} operation to the list of mutations<a name="line.79"></a>
+<span class="sourceLineNo">080</span>   * @param p The {@link Put} to add<a name="line.80"></a>
+<span class="sourceLineNo">081</span>   * @throws IOException if the row of added mutation doesn't match the original row<a name="line.81"></a>
+<span class="sourceLineNo">082</span>   * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.82"></a>
+<span class="sourceLineNo">083</span>   *             use {@link #add(Mutation)}<a name="line.83"></a>
+<span class="sourceLineNo">084</span>   */<a name="line.84"></a>
+<span class="sourceLineNo">085</span>  @Deprecated<a name="line.85"></a>
+<span class="sourceLineNo">086</span>  public void add(Put p) throws IOException {<a name="line.86"></a>
+<span class="sourceLineNo">087</span>    add((Mutation) p);<a name="line.87"></a>
+<span class="sourceLineNo">088</span>  }<a name="line.88"></a>
+<span class="sourceLineNo">089</span><a name="line.89"></a>
+<span class="sourceLineNo">090</span>  /**<a name="line.90"></a>
+<span class="sourceLineNo">091</span>   * Add a {@link Delete} operation to the list of mutations<a name="line.91"></a>
+<span class="sourceLineNo">092</span>   * @param d The {@link Delete} to add<a name="line.92"></a>
+<span class="sourceLineNo">093</span>   * @throws IOException if the row of added mutation doesn't match the original row<a name="line.93"></a>
+<span class="sourceLineNo">094</span>   * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.94"></a>
+<span class="sourceLineNo">095</span>   *             use {@link #add(Mutation)}<a name="line.95"></a>
+<span class="sourceLineNo">096</span>   */<a name="line.96"></a>
+<span class="sourceLineNo">097</span>  @Deprecated<a name="line.97"></a>
+<span class="sourceLineNo">098</span>  public void add(Delete d) throws IOException {<a name="line.98"></a>
+<span class="sourceLineNo">099</span>    add((Mutation) d);<a name="line.99"></a>
+<span class="sourceLineNo">100</span>  }<a name="line.100"></a>
+<span class="sourceLineNo">101</span><a name="line.101"></a>
+<span class="sourceLineNo">102</span>  /**<a name="line.102"></a>
+<span class="sourceLineNo">103</span>   * Currently only supports {@link Put} and {@link Delete} mutations.<a name="line.103"></a>
+<span class="sourceLineNo">104</span>   *<a name="line.104"></a>
+<span class="sourceLineNo">105</span>   * @param mutation The data to send.<a name="line.105"></a>
+<span class="sourceLineNo">106</span>   * @throws IOException if the row of added mutation doesn't match the original row<a name="line.106"></a>
+<span class="sourceLineNo">107</span>   */<a name="line.107"></a>
+<span class="sourceLineNo">108</span>  public RowMutations add(Mutation mutation) throws IOException {<a name="line.108"></a>
+<span class="sourceLineNo">109</span>    return add(Collections.singletonList(mutation));<a name="line.109"></a>
+<span class="sourceLineNo">110</span>  }<a name="line.110"></a>
+<span class="sourceLineNo">111</span><a name="line.111"></a>
+<span class="sourceLineNo">112</span>  /**<a name="line.112"></a>
+<span class="sourceLineNo">113</span>   * Currently only supports {@link Put} and {@link Delete} mutations.<a name="line.113"></a>
+<span class="sourceLineNo">114</span>   *<a name="line.114"></a>
+<span class="sourceLineNo">115</span>   * @param mutations The data to send.<a name="line.115"></a>
+<span class="sourceLineNo">116</span>   * @throws IOException if the row of added mutation doesn't match the original row<a name="line.116"></a>
+<span class="sourceLineNo">117</span>   */<a name="line.117"></a>
+<span class="sourceLineNo">118</span>  public RowMutations add(List&lt;? extends Mutation&gt; mutations) throws IOException {<a name="line.118"></a>
+<span class="sourceLineNo">119</span>    for (Mutation mutation : mutations) {<a name="line.119"></a>
+<span class="sourceLineNo">120</span>      if (!Bytes.equals(row, mutation.getRow())) {<a name="line.120"></a>
+<span class="sourceLineNo">121</span>        throw new WrongRowIOException("The row in the recently added Put/Delete &lt;" +<a name="line.121"></a>
+<span class="sourceLineNo">122</span>          Bytes.toStringBinary(mutation.getRow()) + "&gt; doesn't match the original one &lt;" +<a name="line.122"></a>
+<span class="sourceLineNo">123</span>          Bytes.toStringBinary(this.row) + "&gt;");<a name="line.123"></a>
+<span class="sourceLineNo">124</span>      }<a name="line.124"></a>
+<span class="sourceLineNo">125</span>    }<a name="line.125"></a>
+<span class="sourceLineNo">126</span>    this.mutations.addAll(mutations);<a name="line.126"></a>
+<span class="sourceLineNo">127</span>    return this;<a name="line.127"></a>
+<span class="sourceLineNo">128</span>  }<a name="line.128"></a>
+<span class="sourceLineNo">129</span><a name="line.129"></a>
+<span class="sourceLineNo">130</span>  /**<a name="line.130"></a>
+<span class="sourceLineNo">131</span>   * @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0.<a name="line.131"></a>
+<span class="sourceLineNo">132</span>   *             Use {@link Row#COMPARATOR} instead<a name="line.132"></a>
+<span class="sourceLineNo">133</span>   */<a name="line.133"></a>
+<span class="sourceLineNo">134</span>  @Deprecated<a name="line.134"></a>
+<span class="sourceLineNo">135</span>  @Override<a name="line.135"></a>
+<span class="sourceLineNo">136</span>  public int compareTo(Row i) {<a name="line.136"></a>
+<span class="sourceLineNo">137</span>    return Bytes.compareTo(this.getRow(), i.getRow());<a name="line.137"></a>
+<span class="sourceLineNo">138</span>  }<a name="line.138"></a>
+<span class="sourceLineNo">139</span><a name="line.139"></a>
+<span class="sourceLineNo">140</span>  /**<a name="line.140"></a>
+<span class="sourceLineNo">141</span>   * @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0.<a name="line.141"></a>
+<span class="sourceLineNo">142</span>   *             No replacement<a name="line.142"></a>
+<span class="sourceLineNo">143</span>   */<a name="line.143"></a>
+<span class="sourceLineNo">144</span>  @Deprecated<a name="line.144"></a>
+<span class="sourceLineNo">145</span>  @Override<a name="line.145"></a>
+<span class="sourceLineNo">146</span>  public boolean equals(Object obj) {<a name="line.146"></a>
+<span class="sourceLineNo">147</span>    if (obj == this) return true;<a name="line.147"></a>
+<span class="sourceLineNo">148</span>    if (obj instanceof RowMutations) {<a name="line.148"></a>
+<span class="sourceLineNo">149</span>      RowMutations other = (RowMutations)obj;<a name="line.149"></a>
+<span class="sourceLineNo">150</span>      return compareTo(other) == 0;<a name="line.150"></a>
+<span class="sourceLineNo">151</span>    }<a name="line.151"></a>
+<span class="sourceLineNo">152</span>    return false;<a name="line.152"></a>
+<span class="sourceLineNo">153</span>  }<a name="line.153"></a>
+<span class="sourceLineNo">154</span><a name="line.154"></a>
+<span class="sourceLineNo">155</span>  /**<a name="line.155"></a>
+<span class="sourceLineNo">156</span>   * @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0.<a name="line.156"></a>
+<span class="sourceLineNo">157</span>   *             No replacement<a name="line.157"></a>
+<span class="sourceLineNo">158</span>   */<a name="line.158"></a>
+<span class="sourceLineNo">159</span>  @Deprecated<a name="line.159"></a>
+<span class="sourceLineNo">160</span>  @Override<a name="line.160"></a>
+<span class="sourceLineNo">161</span>  public int hashCode(){<a name="line.161"></a>
+<span class="sourceLineNo">162</span>    return Arrays.hashCode(row);<a name="line.162"></a>
+<span class="sourceLineNo">163</span>  }<a name="line.163"></a>
+<span class="sourceLineNo">164</span><a name="line.164"></a>
+<span class="sourceLineNo">165</span>  @Override<a name="line.165"></a>
+<span class="sourceLineNo">166</span>  public byte[] getRow() {<a name="line.166"></a>
+<span class="sourceLineNo">167</span>    return row;<a name="line.167"></a>
+<span class="sourceLineNo">168</span>  }<a name="line.168"></a>
+<span class="sourceLineNo">169</span><a name="line.169"></a>
+<span class="sourceLineNo">170</span>  /**<a name="line.170"></a>
+<span class="sourceLineNo">171</span>   * @return An unmodifiable list of the current mutations.<a name="line.171"></a>
+<span class="sourceLineNo">172</span>   */<a name="line.172"></a>
+<span class="sourceLineNo">173</span>  public List&lt;Mutation&gt; getMutations() {<a name="line.173"></a>
+<span class="sourceLineNo">174</span>    return Collections.unmodifiableList(mutations);<a name="line.174"></a>
+<span class="sourceLineNo">175</span>  }<a name="line.175"></a>
+<span class="sourceLineNo">176</span><a name="line.176"></a>
+<span class="sourceLineNo">177</span>  public int getMaxPriority() {<a name="line.177"></a>
+<span class="sourceLineNo">178</span>    int maxPriority = Integer.MIN_VALUE;<a name="line.178"></a>
+<span class="sourceLineNo">179</span>    for (Mutation mutation : mutations) {<a name="line.179"></a>
+<span class="sourceLineNo">180</span>      maxPriority = Math.max(maxPriority, mutation.getPriority());<a name="line.180"></a>
+<span class="sourceLineNo">181</span>    }<a name="line.181"></a>
+<span class="sourceLineNo">182</span>    return maxPriority;<a name="line.182"></a>
+<span class="sourceLineNo">183</span>  }<a name="line.183"></a>
+<span class="sourceLineNo">184</span>}<a name="line.184"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1facf1d3/apidocs/src-html/org/apache/hadoop/hbase/net/Address.html
----------------------------------------------------------------------
diff --git a/apidocs/src-html/org/apache/hadoop/hbase/net/Address.html b/apidocs/src-html/org/apache/hadoop/hbase/net/Address.html
index 66aba38..c893aec 100644
--- a/apidocs/src-html/org/apache/hadoop/hbase/net/Address.html
+++ b/apidocs/src-html/org/apache/hadoop/hbase/net/Address.html
@@ -25,7 +25,7 @@
 <span class="sourceLineNo">017</span> */<a name="line.17"></a>
 <span class="sourceLineNo">018</span>package org.apache.hadoop.hbase.net;<a name="line.18"></a>
 <span class="sourceLineNo">019</span><a name="line.19"></a>
-<span class="sourceLineNo">020</span>import org.apache.commons.lang.StringUtils;<a name="line.20"></a>
+<span class="sourceLineNo">020</span>import org.apache.commons.lang3.StringUtils;<a name="line.20"></a>
 <span class="sourceLineNo">021</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.21"></a>
 <span class="sourceLineNo">022</span><a name="line.22"></a>
 <span class="sourceLineNo">023</span>import org.apache.hbase.thirdparty.com.google.common.net.HostAndPort;<a name="line.23"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1facf1d3/apidocs/src-html/org/apache/hadoop/hbase/util/Bytes.ByteArrayComparator.html
----------------------------------------------------------------------
diff --git a/apidocs/src-html/org/apache/hadoop/hbase/util/Bytes.ByteArrayComparator.html b/apidocs/src-html/org/apache/hadoop/hbase/util/Bytes.ByteArrayComparator.html
index e606e82..a242321 100644
--- a/apidocs/src-html/org/apache/hadoop/hbase/util/Bytes.ByteArrayComparator.html
+++ b/apidocs/src-html/org/apache/hadoop/hbase/util/Bytes.ByteArrayComparator.html
@@ -46,18 +46,18 @@
 <span class="sourceLineNo">038</span>import java.util.Iterator;<a name="line.38"></a>
 <span class="sourceLineNo">039</span>import java.util.List;<a name="line.39"></a>
 <span class="sourceLineNo">040</span><a name="line.40"></a>
-<span class="sourceLineNo">041</span>import org.apache.commons.collections.CollectionUtils;<a name="line.41"></a>
-<span class="sourceLineNo">042</span>import org.apache.hadoop.hbase.Cell;<a name="line.42"></a>
-<span class="sourceLineNo">043</span>import org.apache.hadoop.hbase.CellComparator;<a name="line.43"></a>
-<span class="sourceLineNo">044</span>import org.apache.hadoop.hbase.KeyValue;<a name="line.44"></a>
-<span class="sourceLineNo">045</span>import org.apache.hadoop.io.RawComparator;<a name="line.45"></a>
-<span class="sourceLineNo">046</span>import org.apache.hadoop.io.WritableComparator;<a name="line.46"></a>
-<span class="sourceLineNo">047</span>import org.apache.hadoop.io.WritableUtils;<a name="line.47"></a>
-<span class="sourceLineNo">048</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.48"></a>
-<span class="sourceLineNo">049</span>import org.slf4j.Logger;<a name="line.49"></a>
-<span class="sourceLineNo">050</span>import org.slf4j.LoggerFactory;<a name="line.50"></a>
-<span class="sourceLineNo">051</span><a name="line.51"></a>
-<span class="sourceLineNo">052</span>import org.apache.hbase.thirdparty.com.google.common.annotations.VisibleForTesting;<a name="line.52"></a>
+<span class="sourceLineNo">041</span>import org.apache.hadoop.hbase.Cell;<a name="line.41"></a>
+<span class="sourceLineNo">042</span>import org.apache.hadoop.hbase.CellComparator;<a name="line.42"></a>
+<span class="sourceLineNo">043</span>import org.apache.hadoop.hbase.KeyValue;<a name="line.43"></a>
+<span class="sourceLineNo">044</span>import org.apache.hadoop.io.RawComparator;<a name="line.44"></a>
+<span class="sourceLineNo">045</span>import org.apache.hadoop.io.WritableComparator;<a name="line.45"></a>
+<span class="sourceLineNo">046</span>import org.apache.hadoop.io.WritableUtils;<a name="line.46"></a>
+<span class="sourceLineNo">047</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.47"></a>
+<span class="sourceLineNo">048</span>import org.slf4j.Logger;<a name="line.48"></a>
+<span class="sourceLineNo">049</span>import org.slf4j.LoggerFactory;<a name="line.49"></a>
+<span class="sourceLineNo">050</span><a name="line.50"></a>
+<span class="sourceLineNo">051</span>import org.apache.hbase.thirdparty.com.google.common.annotations.VisibleForTesting;<a name="line.51"></a>
+<span class="sourceLineNo">052</span>import org.apache.hbase.thirdparty.org.apache.commons.collections4.CollectionUtils;<a name="line.52"></a>
 <span class="sourceLineNo">053</span><a name="line.53"></a>
 <span class="sourceLineNo">054</span>import com.google.protobuf.ByteString;<a name="line.54"></a>
 <span class="sourceLineNo">055</span><a name="line.55"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1facf1d3/apidocs/src-html/org/apache/hadoop/hbase/util/Bytes.RowEndKeyComparator.html
----------------------------------------------------------------------
diff --git a/apidocs/src-html/org/apache/hadoop/hbase/util/Bytes.RowEndKeyComparator.html b/apidocs/src-html/org/apache/hadoop/hbase/util/Bytes.RowEndKeyComparator.html
index e606e82..a242321 100644
--- a/apidocs/src-html/org/apache/hadoop/hbase/util/Bytes.RowEndKeyComparator.html
+++ b/apidocs/src-html/org/apache/hadoop/hbase/util/Bytes.RowEndKeyComparator.html
@@ -46,18 +46,18 @@
 <span class="sourceLineNo">038</span>import java.util.Iterator;<a name="line.38"></a>
 <span class="sourceLineNo">039</span>import java.util.List;<a name="line.39"></a>
 <span class="sourceLineNo">040</span><a name="line.40"></a>
-<span class="sourceLineNo">041</span>import org.apache.commons.collections.CollectionUtils;<a name="line.41"></a>
-<span class="sourceLineNo">042</span>import org.apache.hadoop.hbase.Cell;<a name="line.42"></a>
-<span class="sourceLineNo">043</span>import org.apache.hadoop.hbase.CellComparator;<a name="line.43"></a>
-<span class="sourceLineNo">044</span>import org.apache.hadoop.hbase.KeyValue;<a name="line.44"></a>
-<span class="sourceLineNo">045</span>import org.apache.hadoop.io.RawComparator;<a name="line.45"></a>
-<span class="sourceLineNo">046</span>import org.apache.hadoop.io.WritableComparator;<a name="line.46"></a>
-<span class="sourceLineNo">047</span>import org.apache.hadoop.io.WritableUtils;<a name="line.47"></a>
-<span class="sourceLineNo">048</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.48"></a>
-<span class="sourceLineNo">049</span>import org.slf4j.Logger;<a name="line.49"></a>
-<span class="sourceLineNo">050</span>import org.slf4j.LoggerFactory;<a name="line.50"></a>
-<span class="sourceLineNo">051</span><a name="line.51"></a>
-<span class="sourceLineNo">052</span>import org.apache.hbase.thirdparty.com.google.common.annotations.VisibleForTesting;<a name="line.52"></a>
+<span class="sourceLineNo">041</span>import org.apache.hadoop.hbase.Cell;<a name="line.41"></a>
+<span class="sourceLineNo">042</span>import org.apache.hadoop.hbase.CellComparator;<a name="line.42"></a>
+<span class="sourceLineNo">043</span>import org.apache.hadoop.hbase.KeyValue;<a name="line.43"></a>
+<span class="sourceLineNo">044</span>import org.apache.hadoop.io.RawComparator;<a name="line.44"></a>
+<span class="sourceLineNo">045</span>import org.apache.hadoop.io.WritableComparator;<a name="line.45"></a>
+<span class="sourceLineNo">046</span>import org.apache.hadoop.io.WritableUtils;<a name="line.46"></a>
+<span class="sourceLineNo">047</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.47"></a>
+<span class="sourceLineNo">048</span>import org.slf4j.Logger;<a name="line.48"></a>
+<span class="sourceLineNo">049</span>import org.slf4j.LoggerFactory;<a name="line.49"></a>
+<span class="sourceLineNo">050</span><a name="line.50"></a>
+<span class="sourceLineNo">051</span>import org.apache.hbase.thirdparty.com.google.common.annotations.VisibleForTesting;<a name="line.51"></a>
+<span class="sourceLineNo">052</span>import org.apache.hbase.thirdparty.org.apache.commons.collections4.CollectionUtils;<a name="line.52"></a>
 <span class="sourceLineNo">053</span><a name="line.53"></a>
 <span class="sourceLineNo">054</span>import com.google.protobuf.ByteString;<a name="line.54"></a>
 <span class="sourceLineNo">055</span><a name="line.55"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1facf1d3/apidocs/src-html/org/apache/hadoop/hbase/util/Bytes.html
----------------------------------------------------------------------
diff --git a/apidocs/src-html/org/apache/hadoop/hbase/util/Bytes.html b/apidocs/src-html/org/apache/hadoop/hbase/util/Bytes.html
index e606e82..a242321 100644
--- a/apidocs/src-html/org/apache/hadoop/hbase/util/Bytes.html
+++ b/apidocs/src-html/org/apache/hadoop/hbase/util/Bytes.html
@@ -46,18 +46,18 @@
 <span class="sourceLineNo">038</span>import java.util.Iterator;<a name="line.38"></a>
 <span class="sourceLineNo">039</span>import java.util.List;<a name="line.39"></a>
 <span class="sourceLineNo">040</span><a name="line.40"></a>
-<span class="sourceLineNo">041</span>import org.apache.commons.collections.CollectionUtils;<a name="line.41"></a>
-<span class="sourceLineNo">042</span>import org.apache.hadoop.hbase.Cell;<a name="line.42"></a>
-<span class="sourceLineNo">043</span>import org.apache.hadoop.hbase.CellComparator;<a name="line.43"></a>
-<span class="sourceLineNo">044</span>import org.apache.hadoop.hbase.KeyValue;<a name="line.44"></a>
-<span class="sourceLineNo">045</span>import org.apache.hadoop.io.RawComparator;<a name="line.45"></a>
-<span class="sourceLineNo">046</span>import org.apache.hadoop.io.WritableComparator;<a name="line.46"></a>
-<span class="sourceLineNo">047</span>import org.apache.hadoop.io.WritableUtils;<a name="line.47"></a>
-<span class="sourceLineNo">048</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.48"></a>
-<span class="sourceLineNo">049</span>import org.slf4j.Logger;<a name="line.49"></a>
-<span class="sourceLineNo">050</span>import org.slf4j.LoggerFactory;<a name="line.50"></a>
-<span class="sourceLineNo">051</span><a name="line.51"></a>
-<span class="sourceLineNo">052</span>import org.apache.hbase.thirdparty.com.google.common.annotations.VisibleForTesting;<a name="line.52"></a>
+<span class="sourceLineNo">041</span>import org.apache.hadoop.hbase.Cell;<a name="line.41"></a>
+<span class="sourceLineNo">042</span>import org.apache.hadoop.hbase.CellComparator;<a name="line.42"></a>
+<span class="sourceLineNo">043</span>import org.apache.hadoop.hbase.KeyValue;<a name="line.43"></a>
+<span class="sourceLineNo">044</span>import org.apache.hadoop.io.RawComparator;<a name="line.44"></a>
+<span class="sourceLineNo">045</span>import org.apache.hadoop.io.WritableComparator;<a name="line.45"></a>
+<span class="sourceLineNo">046</span>import org.apache.hadoop.io.WritableUtils;<a name="line.46"></a>
+<span class="sourceLineNo">047</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.47"></a>
+<span class="sourceLineNo">048</span>import org.slf4j.Logger;<a name="line.48"></a>
+<span class="sourceLineNo">049</span>import org.slf4j.LoggerFactory;<a name="line.49"></a>
+<span class="sourceLineNo">050</span><a name="line.50"></a>
+<span class="sourceLineNo">051</span>import org.apache.hbase.thirdparty.com.google.common.annotations.VisibleForTesting;<a name="line.51"></a>
+<span class="sourceLineNo">052</span>import org.apache.hbase.thirdparty.org.apache.commons.collections4.CollectionUtils;<a name="line.52"></a>
 <span class="sourceLineNo">053</span><a name="line.53"></a>
 <span class="sourceLineNo">054</span>import com.google.protobuf.ByteString;<a name="line.54"></a>
 <span class="sourceLineNo">055</span><a name="line.55"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1facf1d3/book.html
----------------------------------------------------------------------
diff --git a/book.html b/book.html
index 4212d1d..8de5bcb 100644
--- a/book.html
+++ b/book.html
@@ -7008,6 +7008,16 @@ being dumped at DEBUG level as preamble on every shell command invocation.</p>
 <div class="paragraph">
 <p>If you previously relied on client side tracing integrated with HBase operations, it is recommended that you upgrade your usage to HTrace 4 as well.</p>
 </div>
+<div id="upgrade2.0.perf" class="paragraph">
+<div class="title">Performance</div>
+<p>You will likely see a change in the performance profile on upgrade to hbase-2.0.0 given
+read and write paths have undergone significant change. On release, writes may be
+slower with reads about the same or much better, dependent on context. Be prepared
+to spend time re-tuning (See <a href="#performance">Apache HBase Performance Tuning</a>).
+Performance is also an area that is now under active review so look forward to
+improvement in coming releases (See
+<a href="https://issues.apache.org/jira/browse/HBASE-20188">HBASE-20188 TESTING Performance</a>).</p>
+</div>
 </div>
 <div class="sect3">
 <h4 id="upgrade2.0.coprocessors"><a class="anchor" href="#upgrade2.0.coprocessors"></a>13.1.2. Upgrading Coprocessors to 2.0</h4>
@@ -14471,8 +14481,10 @@ Documentation will eventually move to this reference guide, but the blog is the
 <div class="sect2">
 <h3 id="block.cache"><a class="anchor" href="#block.cache"></a>70.4. Block Cache</h3>
 <div class="paragraph">
-<p>HBase provides two different BlockCache implementations: the default on-heap <code>LruBlockCache</code> and the <code>BucketCache</code>, which is (usually) off-heap.
-This section discusses benefits and drawbacks of each implementation, how to choose the appropriate option, and configuration options for each.</p>
+<p>HBase provides two different BlockCache implementations to cache data read from HDFS:
+the default on-heap <code>LruBlockCache</code> and the <code>BucketCache</code>, which is (usually) off-heap.
+This section discusses benefits and drawbacks of each implementation, how to choose the
+appropriate option, and configuration options for each.</p>
 </div>
 <div class="admonitionblock note">
 <table>
@@ -14484,7 +14496,7 @@ This section discusses benefits and drawbacks of each implementation, how to cho
 <div class="title">Block Cache Reporting: UI</div>
 <div class="paragraph">
 <p>See the RegionServer UI for detail on caching deploy.
-Since HBase 0.98.4, the Block Cache detail has been significantly extended showing configurations, sizings, current usage, time-in-the-cache, and even detail on block counts and types.</p>
+See configurations, sizings, current usage, time-in-the-cache, and even detail on block counts and types.</p>
 </div>
 </td>
 </tr>
@@ -14493,44 +14505,22 @@ Since HBase 0.98.4, the Block Cache detail has been significantly extended showi
 <div class="sect3">
 <h4 id="_cache_choices"><a class="anchor" href="#_cache_choices"></a>70.4.1. Cache Choices</h4>
 <div class="paragraph">
-<p><code>LruBlockCache</code> is the original implementation, and is entirely within the Java heap. <code>BucketCache</code> is mainly intended for keeping block cache data off-heap, although <code>BucketCache</code> can also keep data on-heap and serve from a file-backed cache.</p>
-</div>
-<div class="admonitionblock note">
-<table>
-<tr>
-<td class="icon">
-<i class="fa icon-note" title="Note"></i>
-</td>
-<td class="content">
-<div class="title">BucketCache is production ready as of HBase 0.98.6</div>
-<div class="paragraph">
-<p>To run with BucketCache, you need HBASE-11678.
-This was included in 0.98.6.</p>
-</div>
-</td>
-</tr>
-</table>
-</div>
-<div class="paragraph">
-<p>Fetching will always be slower when fetching from BucketCache, as compared to the native on-heap LruBlockCache.
-However, latencies tend to be less erratic across time, because there is less garbage collection when you use BucketCache since it is managing BlockCache allocations, not the GC.
-If the BucketCache is deployed in off-heap mode, this memory is not managed by the GC at all.
-This is why you&#8217;d use BucketCache, so your latencies are less erratic and to mitigate GCs and heap fragmentation.
-See Nick Dimiduk&#8217;s <a href="http://www.n10k.com/blog/blockcache-101/">BlockCache 101</a> for comparisons running on-heap vs off-heap tests.
-Also see <a href="https://people.apache.org/~stack/bc/">Comparing BlockCache Deploys</a> which finds that if your dataset fits inside your LruBlockCache deploy, use it otherwise if you are experiencing cache churn (or you want your cache to exist beyond the vagaries of java GC), use BucketCache.</p>
+<p><code>LruBlockCache</code> is the original implementation, and is entirely within the Java heap.
+<code>BucketCache</code> is optional and mainly intended for keeping block cache data off-heap, although <code>BucketCache</code> can also be a file-backed cache.</p>
 </div>
 <div class="paragraph">
-<p>When you enable BucketCache, you are enabling a two tier caching system, an L1 cache which is implemented by an instance of LruBlockCache and an off-heap L2 cache which is implemented by BucketCache.
-Management of these two tiers and the policy that dictates how blocks move between them is done by <code>CombinedBlockCache</code>.
-It keeps all DATA blocks in the L2 BucketCache and meta blocks&#8201;&#8212;&#8201;INDEX and BLOOM blocks&#8201;&#8212;&#8201;on-heap in the L1 <code>LruBlockCache</code>.
-See <a href="#offheap.blockcache">Off-heap Block Cache</a> for more detail on going off-heap.</p>
+<p>When you enable BucketCache, you are enabling a two tier caching system. We used to describe the
+tiers as "L1" and "L2" but have deprecated this terminology as of hbase-2.0.0. The "L1" cache referred to an
+instance of LruBlockCache and "L2" to an off-heap BucketCache. Instead, when BucketCache is enabled,
+all DATA blocks are kept in the BucketCache tier and meta blocks&#8201;&#8212;&#8201;INDEX and BLOOM blocks&#8201;&#8212;&#8201;are on-heap in the <code>LruBlockCache</code>.
+Management of these two tiers and the policy that dictates how blocks move between them is done by <code>CombinedBlockCache</code>.</p>
 </div>
 </div>
 <div class="sect3">
 <h4 id="cache.configurations"><a class="anchor" href="#cache.configurations"></a>70.4.2. General Cache Configurations</h4>
 <div class="paragraph">
 <p>Apart from the cache implementation itself, you can set some general configuration options to control how the cache performs.
-See <a href="https://hbase.apache.org/devapidocs/org/apache/hadoop/hbase/io/hfile/CacheConfig.html" class="bare">https://hbase.apache.org/devapidocs/org/apache/hadoop/hbase/io/hfile/CacheConfig.html</a>.
+See <a href="https://hbase.apache.org/devapidocs/org/apache/hadoop/hbase/io/hfile/CacheConfig.html">CacheConfig</a>.
 After setting any of these options, restart or rolling restart your cluster for the configuration to take effect.
 Check logs for errors or unexpected behavior.</p>
 </div>
@@ -14596,7 +14586,7 @@ An important concept is the <a href="http://en.wikipedia.org/wiki/Working_set_si
 </div>
 </div>
 <div class="paragraph">
-<p>The default value for the block cache is 0.25 which represents 25% of the available heap.
+<p>The default value for the block cache is 0.4 which represents 40% of the available heap.
 The last value (99%) is the default acceptable loading factor in the LRU cache after which eviction is started.
 The reason it is included in this equation is that it would be unrealistic to say that it is possible to use 100% of the available memory since this would make the process blocking from the point where it loads new blocks.
 Here are some examples:</p>
@@ -14604,10 +14594,10 @@ Here are some examples:</p>
 <div class="ulist">
 <ul>
 <li>
-<p>One region server with the heap size set to 1 GB and the default block cache size will have 253 MB of block cache available.</p>
+<p>One region server with the heap size set to 1 GB and the default block cache size will have 405 MB of block cache available.</p>
 </li>
 <li>
-<p>20 region servers with the heap size set to 8 GB and a default block cache size will have 39.6 of block cache.</p>
+<p>20 region servers with the heap size set to 8 GB and a default block cache size will have 63.3 of block cache.</p>
 </li>
 <li>
 <p>100 region servers with the heap size set to 24 GB and a block cache size of 0.5 will have about 1.16 TB of block cache.</p>
@@ -14698,35 +14688,79 @@ Since <a href="https://issues.apache.org/jira/browse/HBASE-4683">HBASE-4683 Alwa
 <div class="sect4">
 <h5 id="enable.bucketcache"><a class="anchor" href="#enable.bucketcache"></a>How to Enable BucketCache</h5>
 <div class="paragraph">
-<p>The usual deploy of BucketCache is via a managing class that sets up two caching tiers: an L1 on-heap cache implemented by LruBlockCache and a second L2 cache implemented with BucketCache.
+<p>The usual deploy of BucketCache is via a managing class that sets up two caching tiers:
+an on-heap cache implemented by LruBlockCache and a second  cache implemented with BucketCache.
 The managing class is <a href="https://hbase.apache.org/devapidocs/org/apache/hadoop/hbase/io/hfile/CombinedBlockCache.html">CombinedBlockCache</a> by default.
 The previous link describes the caching 'policy' implemented by CombinedBlockCache.
-In short, it works by keeping meta blocks&#8201;&#8212;&#8201;INDEX and BLOOM in the L1, on-heap LruBlockCache tier&#8201;&#8212;&#8201;and DATA blocks are kept in the L2, BucketCache tier.
-It is possible to amend this behavior in HBase since version 1.0 and ask that a column family have both its meta and DATA blocks hosted on-heap in the L1 tier by setting <code>cacheDataInL1</code> via <code>(HColumnDescriptor.setCacheDataInL1(true)</code> or in the shell, creating or amending column families setting <code>CACHE_DATA_IN_L1</code> to true: e.g.</p>
+In short, it works by keeping meta blocks&#8201;&#8212;&#8201;INDEX and BLOOM in the on-heap LruBlockCache tier&#8201;&#8212;&#8201;and DATA blocks are kept in the BucketCache tier.</p>
+</div>
+<div class="exampleblock">
+<div class="content">
+<div class="dlist">
+<dl>
+<dt class="hdlist1">Pre-hbase-2.0.0 versions</dt>
+<dd>
+<p>Fetching will always be slower when fetching from BucketCache in pre-hbase-2.0.0,
+as compared to the native on-heap LruBlockCache. However, latencies tend to be less
+erratic across time, because there is less garbage collection when you use BucketCache since it is managing BlockCache allocations, not the GC.
+If the BucketCache is deployed in off-heap mode, this memory is not managed by the GC at all.
+This is why you&#8217;d use BucketCache in pre-2.0.0, so your latencies are less erratic,
+to mitigate GCs and heap fragmentation, and so you can safely use more memory.
+See Nick Dimiduk&#8217;s <a href="http://www.n10k.com/blog/blockcache-101/">BlockCache 101</a> for comparisons running on-heap vs off-heap tests.
+Also see <a href="https://people.apache.org/~stack/bc/">Comparing BlockCache Deploys</a> which finds that if your dataset fits inside your LruBlockCache deploy, use it otherwise if you are experiencing cache churn (or you want your cache to exist beyond the vagaries of java GC), use BucketCache.</p>
+<div class="paragraph">
+<p>In pre-2.0.0,
+one can configure the BucketCache so it receives the <code>victim</code> of an LruBlockCache eviction.
+All Data and index blocks are cached in L1 first. When eviction happens from L1, the blocks (or <code>victims</code>) will get moved to L2.
+Set <code>cacheDataInL1</code> via <code>(HColumnDescriptor.setCacheDataInL1(true)</code> or in the shell, creating or amending column families setting <code>CACHE_DATA_IN_L1</code> to true: e.g.</p>
+</div>
+</dd>
+</dl>
 </div>
 <div class="listingblock">
 <div class="content">
 <pre class="CodeRay highlight"><code data-lang="java">hbase(main):<span class="octal">003</span>:<span class="integer">0</span>&gt; create <span class="string"><span class="delimiter">'</span><span class="content">t</span><span class="delimiter">'</span></span>, {NAME =&gt; <span class="string"><span class="delimiter">'</span><span class="content">t</span><span class="delimiter">'</span></span>, CONFIGURATION =&gt; {CACHE_DATA_IN_L1 =&gt; <span class="string"><span class="delimiter">'</span><span class="content">true</span><span class="delimiter">'</span></span>}}</code></pre>
 </div>
 </div>
+<div class="dlist">
+<dl>
+<dt class="hdlist1">hbase-2.0.0+ versions</dt>
+<dd>
+<p>HBASE-11425 changed the HBase read path so it could hold the read-data off-heap avoiding copying of cached data on to the java heap.
+See <a href="#regionserver.offheap.readpath">Offheap read-path</a>. In hbase-2.0.0, off-heap latencies approach those of on-heap cache latencies with the added
+benefit of NOT provoking GC.</p>
+<div class="paragraph">
+<p>From HBase 2.0.0 onwards, the notions of L1 and L2 have been deprecated. When BucketCache is turned on, the DATA blocks will always go to BucketCache and INDEX/BLOOM blocks go to on heap LRUBlockCache. <code>cacheDataInL1</code> support hase been removed.</p>
+</div>
+</dd>
+</dl>
+</div>
+</div>
+</div>
 <div class="paragraph">
-<p>The BucketCache Block Cache can be deployed on-heap, off-heap, or file based.
-You set which via the <code>hbase.bucketcache.ioengine</code> setting.
-Setting it to <code>heap</code> will have BucketCache deployed inside the allocated Java heap.
-Setting it to <code>offheap</code> will have BucketCache make its allocations off-heap, and an ioengine setting of <code>file:PATH_TO_FILE</code> will direct BucketCache to use a file caching (Useful in particular if you have some fast I/O attached to the box such as SSDs).</p>
+<p>The BucketCache Block Cache can be deployed <em>off-heap</em>, <em>file</em> or <em>mmaped</em> file mode.</p>
 </div>
 <div class="paragraph">
-<p>It is possible to deploy an L1+L2 setup where we bypass the CombinedBlockCache policy and have BucketCache working as a strict L2 cache to the L1 LruBlockCache.
-For such a setup, set <code>CacheConfig.BUCKET_CACHE_COMBINED_KEY</code> to <code>false</code>.
+<p>You set which via the <code>hbase.bucketcache.ioengine</code> setting.
+Setting it to <code>offheap</code> will have BucketCache make its allocations off-heap, and an ioengine setting of <code>file:PATH_TO_FILE</code> will direct BucketCache to use file caching (Useful in particular if you have some fast I/O attached to the box such as SSDs). From 2.0.0, it is possible to have more than one file backing the BucketCache. This is very useful specially when the Cache size requirement is high. For multiple backing files, configure ioengine as <code>files:PATH_TO_FILE1,PATH_TO_FILE2,PATH_TO_FILE3</code>. BucketCache can be configured to use an mmapped file also. Configure ioengine as <code>mmap:PATH_TO_FILE</code> for this.</p>
+</div>
+<div class="paragraph">
+<p>It is possible to deploy a tiered setup where we bypass the CombinedBlockCache policy and have BucketCache working as a strict L2 cache to the L1 LruBlockCache.
+For such a setup, set <code>hbase.bucketcache.combinedcache.enabled</code> to <code>false</code>.
 In this mode, on eviction from L1, blocks go to L2.
 When a block is cached, it is cached first in L1.
 When we go to look for a cached block, we look first in L1 and if none found, then search L2.
-Let us call this deploy format, <em>Raw L1+L2</em>.</p>
+Let us call this deploy format, <em>Raw L1+L2</em>.
+NOTE: This L1+L2 mode is removed from 2.0.0. When BucketCache is used, it will be strictly the DATA cache and the LruBlockCache will cache INDEX/META blocks.</p>
 </div>
 <div class="paragraph">
 <p>Other BucketCache configs include: specifying a location to persist cache to across restarts, how many threads to use writing the cache, etc.
 See the <a href="https://hbase.apache.org/devapidocs/org/apache/hadoop/hbase/io/hfile/CacheConfig.html">CacheConfig.html</a> class for configuration options and descriptions.</p>
 </div>
+<div class="paragraph">
+<p>To check it enabled, look for the log line describing cache setup; it will detail how BucketCache has been deployed.
+Also see the UI. It will detail the cache tiering and their configuration.</p>
+</div>
 <div class="sect5">
 <h6 id="_bucketcache_example_configuration"><a class="anchor" href="#_bucketcache_example_configuration"></a>BucketCache Example Configuration</h6>
 <div class="paragraph">
@@ -14803,9 +14837,10 @@ The following example configures buckets of size 4096 and 8192.</p>
 <div class="title">Direct Memory Usage In HBase</div>
 <div class="paragraph">
 <p>The default maximum direct memory varies by JVM.
-Traditionally it is 64M or some relation to allocated heap size (-Xmx) or no limit at all (JDK7 apparently). HBase servers use direct memory, in particular short-circuit reading, the hosted DFSClient will allocate direct memory buffers.
+Traditionally it is 64M or some relation to allocated heap size (-Xmx) or no limit at all (JDK7 apparently). HBase servers use direct memory, in particular short-circuit reading (See <a href="#perf.hdfs.configs.localread">Leveraging local data</a>), the hosted DFSClient will allocate direct memory buffers. How much the DFSClient uses is not easy to quantify; it is the number of open HFiles * <code>hbase.dfs.client.read.shortcircuit.buffer.size</code> where <code>hbase.dfs.client.read.shortcircuit.buffer.size</code> is set to 128k in HBase&#8201;&#8212;&#8201;see <em>hbase-default.xml</em> default configurations.
 If you do off-heap block caching, you&#8217;ll be making use of direct memory.
-Starting your JVM, make sure the <code>-XX:MaxDirectMemorySize</code> setting in <em>conf/hbase-env.sh</em> is set to some value that is higher than what you have allocated to your off-heap BlockCache (<code>hbase.bucketcache.size</code>). It should be larger than your off-heap block cache and then some for DFSClient usage (How much the DFSClient uses is not easy to quantify; it is the number of open HFiles * <code>hbase.dfs.client.read.shortcircuit.buffer.size</code> where <code>hbase.dfs.client.read.shortcircuit.buffer.size</code> is set to 128k in HBase&#8201;&#8212;&#8201;see <em>hbase-default.xml</em> default configurations). Direct memory, which is part of the Java process heap, is separate from the object heap allocated by -Xmx.
+The RPCServer uses a ByteBuffer pool. From 2.0.0, these buffers are off-heap ByteBuffers.
+Starting your JVM, make sure the <code>-XX:MaxDirectMemorySize</code> setting in <em>conf/hbase-env.sh</em> considers off-heap BlockCache (<code>hbase.bucketcache.size</code>), DFSClient usage, RPC side ByteBufferPool max size. This has to be bit higher than sum of off heap BlockCache size and max ByteBufferPool size. Allocating an extra of 1-2 GB for the max direct memory size has worked in tests. Direct memory, which is part of the Java process heap, is separate from the object heap allocated by -Xmx.
 The value allocated by <code>MaxDirectMemorySize</code> must not exceed physical RAM, and is likely to be less than the total available RAM due to other memory requirements and system constraints.</p>
 </div>
 <div class="paragraph">
@@ -14836,7 +14871,7 @@ where size-of-bucket-cache itself is EITHER the value of the configuration <code
 </div>
 <div class="paragraph">
 <p>In 1.0, it should be more straight-forward.
-L1 LruBlockCache size is set as a fraction of java heap using <code>hfile.block.cache.size setting</code> (not the best name) and L2 is set as above either in absolute Megabytes or as a fraction of allocated maximum direct memory.</p>
+Onheap LruBlockCache size is set as a fraction of java heap using <code>hfile.block.cache.size setting</code> (not the best name) and BucketCache is set as above in absolute Megabytes.</p>
 </div>
 </td>
 </tr>
@@ -14861,7 +14896,66 @@ For a RegionServer hosting data that can comfortably fit into cache, or if your
 </div>
 </div>
 <div class="sect2">
-<h3 id="regionserver_splitting_implementation"><a class="anchor" href="#regionserver_splitting_implementation"></a>70.5. RegionServer Splitting Implementation</h3>
+<h3 id="regionserver.offheap"><a class="anchor" href="#regionserver.offheap"></a>70.5. RegionServer Offheap Read/Write Path</h3>
+<div class="sect3">
+<h4 id="regionserver.offheap.readpath"><a class="anchor" href="#regionserver.offheap.readpath"></a>70.5.1. Offheap read-path</h4>
+<div class="paragraph">
+<p>In hbase-2.0.0, <a href="https://issues.apache.org/jira/browse/HBASE-11425">HBASE-11425</a> changed the HBase read path so it
+could hold the read-data off-heap avoiding copying of cached data on to the java heap.
+This reduces GC pauses given there is less garbage made and so less to clear. The off-heap read path has a performance
+that is similar/better to that of the on-heap LRU cache.  This feature is available since HBase 2.0.0.
+If the BucketCache is in <code>file</code> mode, fetching will always be slower compared to the native on-heap LruBlockCache.
+Refer to below blogs for more details and test results on off heaped read path
+<a href="https://blogs.apache.org/hbase/entry/offheaping_the_read_path_in">Offheaping the Read Path in Apache HBase: Part 1 of 2</a>
+and <a href="https://blogs.apache.org/hbase/entry/offheap-read-path-in-production">Offheap Read-Path in Production - The Alibaba story</a></p>
+</div>
+<div class="paragraph">
+<p>For an end-to-end off-heaped read-path, first of all there should be an off-heap backed <a href="#offheap.blockcache">Off-heap Block Cache</a>(BC). Configure 'hbase.bucketcache.ioengine' to off-heap in
+<em>hbase-site.xml</em>. Also specify the total capacity of the BC using <code>hbase.bucketcache.size</code> config. Please remember to adjust value of 'HBASE_OFFHEAPSIZE' in
+<em>hbase-env.sh</em>. This is how we specify the max possible off-heap memory allocation for the
+RegionServer java process. This should be bigger than the off-heap BC size. Please keep in mind that there is no default for <code>hbase.bucketcache.ioengine</code>
+which means the BC is turned OFF by default (See <a href="#direct.memory">Direct Memory Usage In HBase</a>).</p>
+</div>
+<div class="paragraph">
+<p>Next thing to tune is the ByteBuffer pool on the RPC server side.
+The buffers from this pool will be used to accumulate the cell bytes and create a result cell block to send back to the client side.
+<code>hbase.ipc.server.reservoir.enabled</code> can be used to turn this pool ON or OFF. By default this pool is ON and available. HBase will create off heap ByteBuffers
+and pool them. Please make sure not to turn this OFF if you want end-to-end off-heaping in read path.
+If this pool is turned off, the server will create temp buffers on heap to accumulate the cell bytes and make a result cell block. This can impact the GC on a highly read loaded server.
+The user can tune this pool with respect to how many buffers are in the pool and what should be the size of each ByteBuffer.
+Use the config <code>hbase.ipc.server.reservoir.initial.buffer.size</code> to tune each of the buffer sizes. Default is 64 KB.</p>
+</div>
+<div class="paragraph">
+<p>When the read pattern is a random row read load and each of the rows are smaller in size compared to this 64 KB, try reducing this.
+When the result size is larger than one ByteBuffer size, the server will try to grab more than one buffer and make a result cell block out of these. When the pool is running out of buffers, the server will end up creating temporary on-heap buffers.</p>
+</div>
+<div class="paragraph">
+<p>The maximum number of ByteBuffers in the pool can be tuned using the config 'hbase.ipc.server.reservoir.initial.max'. Its value defaults to 64 * region server handlers configured (See the config 'hbase.regionserver.handler.count'). The math is such that by default we consider 2 MB as the result cell block size per read result and each handler will be handling a read. For 2 MB size, we need 32 buffers each of size 64 KB (See default buffer size in pool). So per handler 32 ByteBuffers(BB). We allocate twice this size as the max BBs count such that one handler can be creating the response and handing it to the RPC Responder thread and then handling a new request creating a new response cell block (using pooled buffers). Even if the responder could not send back the first TCP reply immediately, our count should allow that we should still have enough buffers in our pool without having to make temporary buffers on the heap. Again for smaller sized random row reads, tune this max count.
  There are lazily created buffers and the count is the max count to be pooled.</p>
+</div>
+<div class="paragraph">
+<p>If you still see GC issues even after making end-to-end read path off-heap, look for issues in the appropriate buffer pool. Check the below RegionServer log with INFO level:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="java">Pool already reached its max capacity : XXX and no free buffers now. Consider increasing the value <span class="keyword">for</span> <span class="string"><span class="delimiter">'</span><span class="content">hbase.ipc.server.reservoir.initial.max</span><span class="delimiter">'</span></span> ?</code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p>The setting for <em>HBASE_OFFHEAPSIZE</em> in <em>hbase-env.sh</em> should consider this off heap buffer pool at the RPC side also. We need to config this max off heap size for the RegionServer as a bit higher than the sum of this max pool size and the off heap cache size. The TCP layer will also need to create direct bytebuffers for TCP communication. Also the DFS client will need some off-heap to do its workings especially if short-circuit reads are configured. Allocating an extra of 1 - 2 GB for the max direct memory size has worked in tests.</p>
+</div>
+<div class="paragraph">
+<p>If you are using co processors and refer the Cells in the read results, DO NOT store reference to these Cells out of the scope of the CP hook methods. Some times the CPs need store info about the cell (Like its row key) for considering in the next CP hook call etc. For such cases, pls clone the required fields of the entire Cell as per the use cases. [ See CellUtil#cloneXXX(Cell) APIs ]</p>
+</div>
+</div>
+<div class="sect3">
+<h4 id="regionserver.offheap.writepath"><a class="anchor" href="#regionserver.offheap.writepath"></a>70.5.2. Offheap write-path</h4>
+<div class="paragraph">
+<p>TODO</p>
+</div>
+</div>
+</div>
+<div class="sect2">
+<h3 id="regionserver_splitting_implementation"><a class="anchor" href="#regionserver_splitting_implementation"></a>70.6. RegionServer Splitting Implementation</h3>
 <div class="paragraph">
 <p>As write requests are handled by the region server, they accumulate in an in-memory storage system called the <em>memstore</em>. Once the memstore fills, its content are written to disk as additional store files. This event is called a <em>memstore flush</em>. As store files accumulate, the RegionServer will <a href="#compaction">compact</a> them into fewer, larger files. After each flush or compaction finishes, the amount of data stored in the region has changed. The RegionServer consults the region split policy to determine if the region has grown too large or should be split for another policy-specific reason. A region split request is enqueued if the policy recommends it.</p>
 </div>
@@ -14919,9 +15013,9 @@ Those reference files will point to the parent region&#8217;s files.</p>
 </div>
 </div>
 <div class="sect2">
-<h3 id="wal"><a class="anchor" href="#wal"></a>70.6. Write Ahead Log (WAL)</h3>
+<h3 id="wal"><a class="anchor" href="#wal"></a>70.7. Write Ahead Log (WAL)</h3>
 <div class="sect3">
-<h4 id="purpose.wal"><a class="anchor" href="#purpose.wal"></a>70.6.1. Purpose</h4>
+<h4 id="purpose.wal"><a class="anchor" href="#purpose.wal"></a>70.7.1. Purpose</h4>
 <div class="paragraph">
 <p>The <em>Write Ahead Log (WAL)</em> records all changes to data in HBase, to file-based storage.
 Under normal operations, the WAL is not needed because data changes move from the MemStore to StoreFiles.
@@ -14962,7 +15056,7 @@ You will likely find references to the HLog in documentation tailored to these o
 </div>
 </div>
 <div class="sect3">
-<h4 id="wal.providers"><a class="anchor" href="#wal.providers"></a>70.6.2. WAL Providers</h4>
+<h4 id="wal.providers"><a class="anchor" href="#wal.providers"></a>70.7.2. WAL Providers</h4>
 <div class="paragraph">
 <p>In HBase, there are a number of WAL imlementations (or 'Providers'). Each is known
 by a short name label (that unfortunately is not always descriptive). You set the provider in
@@ -14993,7 +15087,7 @@ by a short name label (that unfortunately is not always descriptive). You set th
 </div>
 </div>
 <div class="sect3">
-<h4 id="_multiwal"><a class="anchor" href="#_multiwal"></a>70.6.3. MultiWAL</h4>
+<h4 id="_multiwal"><a class="anchor" href="#_multiwal"></a>70.7.3. MultiWAL</h4>
 <div class="paragraph">
 <p>With a single WAL per RegionServer, the RegionServer must write to the WAL serially, because HDFS files must be sequential. This causes the WAL to be a performance bottleneck.</p>
 </div>
@@ -15023,13 +15117,13 @@ by a short name label (that unfortunately is not always descriptive). You set th
 </div>
 </div>
 <div class="sect3">
-<h4 id="wal_flush"><a class="anchor" href="#wal_flush"></a>70.6.4. WAL Flushing</h4>
+<h4 id="wal_flush"><a class="anchor" href="#wal_flush"></a>70.7.4. WAL Flushing</h4>
 <div class="paragraph">
 <p>TODO (describe).</p>
 </div>
 </div>
 <div class="sect3">
-<h4 id="_wal_splitting"><a class="anchor" href="#_wal_splitting"></a>70.6.5. WAL Splitting</h4>
+<h4 id="_wal_splitting"><a class="anchor" href="#_wal_splitting"></a>70.7.5. WAL Splitting</h4>
 <div class="paragraph">
 <p>A RegionServer serves many regions.
 All of the regions in a region server share the same active WAL file.
@@ -15362,7 +15456,7 @@ If none are found, it throws an exception so that the log splitting can be retri
 </div>
 </div>
 <div class="sect3">
-<h4 id="wal.compression"><a class="anchor" href="#wal.compression"></a>70.6.6. WAL Compression</h4>
+<h4 id="wal.compression"><a class="anchor" href="#wal.compression"></a>70.7.6. WAL Compression</h4>
 <div class="paragraph">
 <p>The content of the WAL can be compressed using LRU Dictionary compression.
 This can be used to speed up WAL replication to different datanodes.
@@ -15381,7 +15475,7 @@ dictionary because of an abrupt termination, a read of this last block may not b
 </div>
 </div>
 <div class="sect3">
-<h4 id="wal.durability"><a class="anchor" href="#wal.durability"></a>70.6.7. Durability</h4>
+<h4 id="wal.durability"><a class="anchor" href="#wal.durability"></a>70.7.7. Durability</h4>
 <div class="paragraph">
 <p>It is possible to set <em>durability</em> on each Mutation or on a Table basis. Options include:</p>
 </div>
@@ -15407,7 +15501,7 @@ options unfortunately closely named</p>
 </div>
 </div>
 <div class="sect3">
-<h4 id="wal.disable"><a class="anchor" href="#wal.disable"></a>70.6.8. Disabling the WAL</h4>
+<h4 id="wal.disable"><a class="anchor" href="#wal.disable"></a>70.7.8. Disabling the WAL</h4>
 <div class="paragraph">
 <p>It is possible to disable the WAL, to improve performance in certain specific situations.
 However, disabling the WAL puts your data at risk.
@@ -37730,7 +37824,7 @@ The server will return cellblocks compressed using this same compressor as long
 <div id="footer">
 <div id="footer-text">
 Version 3.0.0-SNAPSHOT<br>
-Last updated 2018-04-19 14:29:51 UTC
+Last updated 2018-04-20 14:29:52 UTC
 </div>
 </div>
 </body>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1facf1d3/bulk-loads.html
----------------------------------------------------------------------
diff --git a/bulk-loads.html b/bulk-loads.html
index ef792c5..2c97d08 100644
--- a/bulk-loads.html
+++ b/bulk-loads.html
@@ -7,7 +7,7 @@
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20180419" />
+    <meta name="Date-Revision-yyyymmdd" content="20180420" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache HBase &#x2013;  
       Bulk Loads in Apache HBase (TM)
@@ -306,7 +306,7 @@ under the License. -->
                         <a href="https://www.apache.org/">The Apache Software Foundation</a>.
             All rights reserved.      
                     
-                  <li id="publishDate" class="pull-right">Last Published: 2018-04-19</li>
+                  <li id="publishDate" class="pull-right">Last Published: 2018-04-20</li>
             </p>
                 </div>