http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1f2eeb22/apidocs/org/apache/hadoop/hbase/client/class-use/Put.html
----------------------------------------------------------------------
diff --git a/apidocs/org/apache/hadoop/hbase/client/class-use/Put.html 
b/apidocs/org/apache/hadoop/hbase/client/class-use/Put.html
index ab1fdaa..a3dbda0 100644
--- a/apidocs/org/apache/hadoop/hbase/client/class-use/Put.html
+++ b/apidocs/org/apache/hadoop/hbase/client/class-use/Put.html
@@ -275,7 +275,10 @@ Input/OutputFormats, a table indexing MapReduce job, and 
utility methods.</div>
 <tr class="altColor">
 <td class="colFirst"><code>void</code></td>
 <td class="colLast"><span 
class="typeNameLabel">RowMutations.</span><code><span class="memberNameLink"><a 
href="../../../../../../org/apache/hadoop/hbase/client/RowMutations.html#add-org.apache.hadoop.hbase.client.Put-">add</a></span>(<a
 href="../../../../../../org/apache/hadoop/hbase/client/Put.html" title="class 
in org.apache.hadoop.hbase.client">Put</a>&nbsp;p)</code>
-<div class="block">Add a <a 
href="../../../../../../org/apache/hadoop/hbase/client/Put.html" title="class 
in org.apache.hadoop.hbase.client"><code>Put</code></a> operation to the list 
of mutations</div>
+<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
+<div class="block"><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>RowMutations.add(Mutation)</code></a></span></div>
+</div>
 </td>
 </tr>
 <tr class="rowColor">

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1f2eeb22/apidocs/org/apache/hadoop/hbase/client/class-use/RowMutations.html
----------------------------------------------------------------------
diff --git a/apidocs/org/apache/hadoop/hbase/client/class-use/RowMutations.html 
b/apidocs/org/apache/hadoop/hbase/client/class-use/RowMutations.html
index bdfba55..f258f19 100644
--- a/apidocs/org/apache/hadoop/hbase/client/class-use/RowMutations.html
+++ b/apidocs/org/apache/hadoop/hbase/client/class-use/RowMutations.html
@@ -102,6 +102,33 @@
 </a>
 <h3>Uses of <a 
href="../../../../../../org/apache/hadoop/hbase/client/RowMutations.html" 
title="class in org.apache.hadoop.hbase.client">RowMutations</a> in <a 
href="../../../../../../org/apache/hadoop/hbase/client/package-summary.html">org.apache.hadoop.hbase.client</a></h3>
 <table class="useSummary" border="0" cellpadding="3" cellspacing="0" 
summary="Use table, listing methods, and an explanation">
+<caption><span>Methods in <a 
href="../../../../../../org/apache/hadoop/hbase/client/package-summary.html">org.apache.hadoop.hbase.client</a>
 that return <a 
href="../../../../../../org/apache/hadoop/hbase/client/RowMutations.html" 
title="class in org.apache.hadoop.hbase.client">RowMutations</a></span><span 
class="tabEnd">&nbsp;</span></caption>
+<tr>
+<th class="colFirst" scope="col">Modifier and Type</th>
+<th class="colLast" scope="col">Method and Description</th>
+</tr>
+<tbody>
+<tr class="altColor">
+<td class="colFirst"><code><a 
href="../../../../../../org/apache/hadoop/hbase/client/RowMutations.html" 
title="class in org.apache.hadoop.hbase.client">RowMutations</a></code></td>
+<td class="colLast"><span 
class="typeNameLabel">RowMutations.</span><code><span class="memberNameLink"><a 
href="../../../../../../org/apache/hadoop/hbase/client/RowMutations.html#add-java.util.List-">add</a></span>(<a
 
href="http://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)</code>
+<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>
+</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code><a 
href="../../../../../../org/apache/hadoop/hbase/client/RowMutations.html" 
title="class in org.apache.hadoop.hbase.client">RowMutations</a></code></td>
+<td class="colLast"><span 
class="typeNameLabel">RowMutations.</span><code><span class="memberNameLink"><a 
href="../../../../../../org/apache/hadoop/hbase/client/RowMutations.html#add-org.apache.hadoop.hbase.client.Mutation-">add</a></span>(<a
 href="../../../../../../org/apache/hadoop/hbase/client/Mutation.html" 
title="class in 
org.apache.hadoop.hbase.client">Mutation</a>&nbsp;mutation)</code>
+<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>
+</td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>static <a 
href="../../../../../../org/apache/hadoop/hbase/client/RowMutations.html" 
title="class in org.apache.hadoop.hbase.client">RowMutations</a></code></td>
+<td class="colLast"><span 
class="typeNameLabel">RowMutations.</span><code><span class="memberNameLink"><a 
href="../../../../../../org/apache/hadoop/hbase/client/RowMutations.html#of-java.util.List-">of</a></span>(<a
 
href="http://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)</code>
+<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>
+</td>
+</tr>
+</tbody>
+</table>
+<table class="useSummary" border="0" cellpadding="3" cellspacing="0" 
summary="Use table, listing methods, and an explanation">
 <caption><span>Methods in <a 
href="../../../../../../org/apache/hadoop/hbase/client/package-summary.html">org.apache.hadoop.hbase.client</a>
 with parameters of type <a 
href="../../../../../../org/apache/hadoop/hbase/client/RowMutations.html" 
title="class in org.apache.hadoop.hbase.client">RowMutations</a></span><span 
class="tabEnd">&nbsp;</span></caption>
 <tr>
 <th class="colFirst" scope="col">Modifier and Type</th>

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

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1f2eeb22/apidocs/src-html/org/apache/hadoop/hbase/mapreduce/WALPlayer.html
----------------------------------------------------------------------
diff --git a/apidocs/src-html/org/apache/hadoop/hbase/mapreduce/WALPlayer.html 
b/apidocs/src-html/org/apache/hadoop/hbase/mapreduce/WALPlayer.html
index 88c511a..ccdd6a2 100644
--- a/apidocs/src-html/org/apache/hadoop/hbase/mapreduce/WALPlayer.html
+++ b/apidocs/src-html/org/apache/hadoop/hbase/mapreduce/WALPlayer.html
@@ -113,7 +113,7 @@
 <span class="sourceLineNo">105</span>    throws IOException {<a 
name="line.105"></a>
 <span class="sourceLineNo">106</span>      try {<a name="line.106"></a>
 <span class="sourceLineNo">107</span>        // skip all other tables<a 
name="line.107"></a>
-<span class="sourceLineNo">108</span>        if (Bytes.equals(table, 
key.getTablename().getName())) {<a name="line.108"></a>
+<span class="sourceLineNo">108</span>        if (Bytes.equals(table, 
key.getTableName().getName())) {<a name="line.108"></a>
 <span class="sourceLineNo">109</span>          for (Cell cell : 
value.getCells()) {<a name="line.109"></a>
 <span class="sourceLineNo">110</span>            if 
(WALEdit.isMetaEditFamily(cell)) {<a name="line.110"></a>
 <span class="sourceLineNo">111</span>              continue;<a 
name="line.111"></a>
@@ -153,10 +153,10 @@
 <span class="sourceLineNo">145</span>    public void map(WALKey key, WALEdit 
value, Context context)<a name="line.145"></a>
 <span class="sourceLineNo">146</span>    throws IOException {<a 
name="line.146"></a>
 <span class="sourceLineNo">147</span>      try {<a name="line.147"></a>
-<span class="sourceLineNo">148</span>        if (tables.isEmpty() || 
tables.containsKey(key.getTablename())) {<a name="line.148"></a>
+<span class="sourceLineNo">148</span>        if (tables.isEmpty() || 
tables.containsKey(key.getTableName())) {<a name="line.148"></a>
 <span class="sourceLineNo">149</span>          TableName targetTable = 
tables.isEmpty() ?<a name="line.149"></a>
-<span class="sourceLineNo">150</span>                key.getTablename() :<a 
name="line.150"></a>
-<span class="sourceLineNo">151</span>                
tables.get(key.getTablename());<a name="line.151"></a>
+<span class="sourceLineNo">150</span>                key.getTableName() :<a 
name="line.150"></a>
+<span class="sourceLineNo">151</span>                
tables.get(key.getTableName());<a name="line.151"></a>
 <span class="sourceLineNo">152</span>          ImmutableBytesWritable tableOut 
= new ImmutableBytesWritable(targetTable.getName());<a name="line.152"></a>
 <span class="sourceLineNo">153</span>          Put put = null;<a 
name="line.153"></a>
 <span class="sourceLineNo">154</span>          Delete del = null;<a 
name="line.154"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1f2eeb22/book.html
----------------------------------------------------------------------
diff --git a/book.html b/book.html
index 6a66454..bfd2656 100644
--- a/book.html
+++ b/book.html
@@ -37262,7 +37262,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-02-01 14:29:41 UTC
+Last updated 2018-02-02 14:29:41 UTC
 </div>
 </div>
 </body>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1f2eeb22/bulk-loads.html
----------------------------------------------------------------------
diff --git a/bulk-loads.html b/bulk-loads.html
index 1d44105..2f00f20 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="20180201" />
+    <meta name="Date-Revision-yyyymmdd" content="20180202" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache HBase &#x2013;  
       Bulk Loads in Apache HBase (TM)
@@ -311,7 +311,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-02-01</li>
+                  <li id="publishDate" class="pull-right">Last Published: 
2018-02-02</li>
             </p>
                 </div>
 

Reply via email to