hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [29/40] hbase-site git commit: Published site at .
Date Sat, 12 Aug 2017 15:07:11 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/c0fcd7f3/devapidocs/src-html/org/apache/hadoop/hbase/client/Put.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/client/Put.html b/devapidocs/src-html/org/apache/hadoop/hbase/client/Put.html
index e79672a..c441fe6 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/client/Put.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/client/Put.html
@@ -224,306 +224,299 @@
 <span class="sourceLineNo">216</span>    List&lt;Cell&gt; list = getCellList(family);<a name="line.216"></a>
 <span class="sourceLineNo">217</span>    KeyValue kv = createPutKeyValue(family, qualifier, ts, value);<a name="line.217"></a>
 <span class="sourceLineNo">218</span>    list.add(kv);<a name="line.218"></a>
-<span class="sourceLineNo">219</span>    familyMap.put(CellUtil.cloneFamily(kv), list);<a name="line.219"></a>
-<span class="sourceLineNo">220</span>    return this;<a name="line.220"></a>
-<span class="sourceLineNo">221</span>  }<a name="line.221"></a>
-<span class="sourceLineNo">222</span><a name="line.222"></a>
-<span class="sourceLineNo">223</span>  /**<a name="line.223"></a>
-<span class="sourceLineNo">224</span>   * See {@link #addColumn(byte[], byte[], long, byte[])}. This version expects<a name="line.224"></a>
-<span class="sourceLineNo">225</span>   * that the underlying arrays won't change. It's intended<a name="line.225"></a>
-<span class="sourceLineNo">226</span>   * for usage internal HBase to and for advanced client applications.<a name="line.226"></a>
-<span class="sourceLineNo">227</span>   */<a name="line.227"></a>
-<span class="sourceLineNo">228</span>  public Put addImmutable(byte [] family, byte [] qualifier, long ts, byte [] value) {<a name="line.228"></a>
-<span class="sourceLineNo">229</span>    // Family can not be null, otherwise NullPointerException is thrown when putting the cell into familyMap<a name="line.229"></a>
-<span class="sourceLineNo">230</span>    if (family == null) {<a name="line.230"></a>
-<span class="sourceLineNo">231</span>      throw new IllegalArgumentException("Family cannot be null");<a name="line.231"></a>
-<span class="sourceLineNo">232</span>    }<a name="line.232"></a>
-<span class="sourceLineNo">233</span><a name="line.233"></a>
-<span class="sourceLineNo">234</span>    // Check timestamp<a name="line.234"></a>
-<span class="sourceLineNo">235</span>    if (ts &lt; 0) {<a name="line.235"></a>
-<span class="sourceLineNo">236</span>      throw new IllegalArgumentException("Timestamp cannot be negative. ts=" + ts);<a name="line.236"></a>
-<span class="sourceLineNo">237</span>    }<a name="line.237"></a>
-<span class="sourceLineNo">238</span><a name="line.238"></a>
-<span class="sourceLineNo">239</span>    List&lt;Cell&gt; list = getCellList(family);<a name="line.239"></a>
-<span class="sourceLineNo">240</span>    list.add(new IndividualBytesFieldCell(this.row, family, qualifier, ts, KeyValue.Type.Put, value));<a name="line.240"></a>
-<span class="sourceLineNo">241</span>    familyMap.put(family, list);<a name="line.241"></a>
-<span class="sourceLineNo">242</span>    return this;<a name="line.242"></a>
-<span class="sourceLineNo">243</span>  }<a name="line.243"></a>
-<span class="sourceLineNo">244</span><a name="line.244"></a>
-<span class="sourceLineNo">245</span>  /**<a name="line.245"></a>
-<span class="sourceLineNo">246</span>   * This expects that the underlying arrays won't change. It's intended<a name="line.246"></a>
-<span class="sourceLineNo">247</span>   * for usage internal HBase to and for advanced client applications.<a name="line.247"></a>
-<span class="sourceLineNo">248</span>   * &lt;p&gt;Marked as audience Private as of 1.2.0. {@link Tag} is an internal implementation detail<a name="line.248"></a>
-<span class="sourceLineNo">249</span>   * that should not be exposed publicly.<a name="line.249"></a>
-<span class="sourceLineNo">250</span>   */<a name="line.250"></a>
-<span class="sourceLineNo">251</span>  @InterfaceAudience.Private<a name="line.251"></a>
-<span class="sourceLineNo">252</span>  public Put addImmutable(byte[] family, byte[] qualifier, long ts, byte[] value, Tag[] tag) {<a name="line.252"></a>
-<span class="sourceLineNo">253</span>    List&lt;Cell&gt; list = getCellList(family);<a name="line.253"></a>
-<span class="sourceLineNo">254</span>    KeyValue kv = createPutKeyValue(family, qualifier, ts, value, tag);<a name="line.254"></a>
-<span class="sourceLineNo">255</span>    list.add(kv);<a name="line.255"></a>
-<span class="sourceLineNo">256</span>    familyMap.put(family, list);<a name="line.256"></a>
-<span class="sourceLineNo">257</span>    return this;<a name="line.257"></a>
-<span class="sourceLineNo">258</span>  }<a name="line.258"></a>
-<span class="sourceLineNo">259</span><a name="line.259"></a>
-<span class="sourceLineNo">260</span>  /**<a name="line.260"></a>
-<span class="sourceLineNo">261</span>   * This expects that the underlying arrays won't change. It's intended<a name="line.261"></a>
-<span class="sourceLineNo">262</span>   * for usage internal HBase to and for advanced client applications.<a name="line.262"></a>
-<span class="sourceLineNo">263</span>   * &lt;p&gt;Marked as audience Private as of 1.2.0. {@link Tag} is an internal implementation detail<a name="line.263"></a>
-<span class="sourceLineNo">264</span>   * that should not be exposed publicly.<a name="line.264"></a>
-<span class="sourceLineNo">265</span>   */<a name="line.265"></a>
-<span class="sourceLineNo">266</span>  @InterfaceAudience.Private<a name="line.266"></a>
-<span class="sourceLineNo">267</span>  public Put addImmutable(byte[] family, ByteBuffer qualifier, long ts, ByteBuffer value,<a name="line.267"></a>
-<span class="sourceLineNo">268</span>                          Tag[] tag) {<a name="line.268"></a>
-<span class="sourceLineNo">269</span>    if (ts &lt; 0) {<a name="line.269"></a>
-<span class="sourceLineNo">270</span>      throw new IllegalArgumentException("Timestamp cannot be negative. ts=" + ts);<a name="line.270"></a>
-<span class="sourceLineNo">271</span>    }<a name="line.271"></a>
-<span class="sourceLineNo">272</span>    List&lt;Cell&gt; list = getCellList(family);<a name="line.272"></a>
-<span class="sourceLineNo">273</span>    KeyValue kv = createPutKeyValue(family, qualifier, ts, value, tag);<a name="line.273"></a>
-<span class="sourceLineNo">274</span>    list.add(kv);<a name="line.274"></a>
-<span class="sourceLineNo">275</span>    familyMap.put(family, list);<a name="line.275"></a>
-<span class="sourceLineNo">276</span>    return this;<a name="line.276"></a>
-<span class="sourceLineNo">277</span>  }<a name="line.277"></a>
-<span class="sourceLineNo">278</span><a name="line.278"></a>
-<span class="sourceLineNo">279</span><a name="line.279"></a>
-<span class="sourceLineNo">280</span>  /**<a name="line.280"></a>
-<span class="sourceLineNo">281</span>   * Add the specified column and value, with the specified timestamp as<a name="line.281"></a>
-<span class="sourceLineNo">282</span>   * its version to this Put operation.<a name="line.282"></a>
-<span class="sourceLineNo">283</span>   * @param family family name<a name="line.283"></a>
-<span class="sourceLineNo">284</span>   * @param qualifier column qualifier<a name="line.284"></a>
-<span class="sourceLineNo">285</span>   * @param ts version timestamp<a name="line.285"></a>
-<span class="sourceLineNo">286</span>   * @param value column value<a name="line.286"></a>
-<span class="sourceLineNo">287</span>   * @return this<a name="line.287"></a>
-<span class="sourceLineNo">288</span>   */<a name="line.288"></a>
-<span class="sourceLineNo">289</span>  public Put addColumn(byte[] family, ByteBuffer qualifier, long ts, ByteBuffer value) {<a name="line.289"></a>
-<span class="sourceLineNo">290</span>    if (ts &lt; 0) {<a name="line.290"></a>
-<span class="sourceLineNo">291</span>      throw new IllegalArgumentException("Timestamp cannot be negative. ts=" + ts);<a name="line.291"></a>
-<span class="sourceLineNo">292</span>    }<a name="line.292"></a>
-<span class="sourceLineNo">293</span>    List&lt;Cell&gt; list = getCellList(family);<a name="line.293"></a>
-<span class="sourceLineNo">294</span>    KeyValue kv = createPutKeyValue(family, qualifier, ts, value, null);<a name="line.294"></a>
-<span class="sourceLineNo">295</span>    list.add(kv);<a name="line.295"></a>
-<span class="sourceLineNo">296</span>    familyMap.put(CellUtil.cloneFamily(kv), list);<a name="line.296"></a>
-<span class="sourceLineNo">297</span>    return this;<a name="line.297"></a>
-<span class="sourceLineNo">298</span>  }<a name="line.298"></a>
-<span class="sourceLineNo">299</span><a name="line.299"></a>
-<span class="sourceLineNo">300</span>  /**<a name="line.300"></a>
-<span class="sourceLineNo">301</span>   * See {@link #addColumn(byte[], ByteBuffer, long, ByteBuffer)}. This version expects<a name="line.301"></a>
-<span class="sourceLineNo">302</span>   * that the underlying arrays won't change. It's intended<a name="line.302"></a>
-<span class="sourceLineNo">303</span>   * for usage internal HBase to and for advanced client applications.<a name="line.303"></a>
-<span class="sourceLineNo">304</span>   */<a name="line.304"></a>
-<span class="sourceLineNo">305</span>  public Put addImmutable(byte[] family, ByteBuffer qualifier, long ts, ByteBuffer value) {<a name="line.305"></a>
-<span class="sourceLineNo">306</span>    if (ts &lt; 0) {<a name="line.306"></a>
-<span class="sourceLineNo">307</span>      throw new IllegalArgumentException("Timestamp cannot be negative. ts=" + ts);<a name="line.307"></a>
-<span class="sourceLineNo">308</span>    }<a name="line.308"></a>
-<span class="sourceLineNo">309</span>    List&lt;Cell&gt; list = getCellList(family);<a name="line.309"></a>
-<span class="sourceLineNo">310</span>    KeyValue kv = createPutKeyValue(family, qualifier, ts, value, null);<a name="line.310"></a>
-<span class="sourceLineNo">311</span>    list.add(kv);<a name="line.311"></a>
-<span class="sourceLineNo">312</span>    familyMap.put(family, list);<a name="line.312"></a>
-<span class="sourceLineNo">313</span>    return this;<a name="line.313"></a>
-<span class="sourceLineNo">314</span>  }<a name="line.314"></a>
-<span class="sourceLineNo">315</span><a name="line.315"></a>
-<span class="sourceLineNo">316</span>  /**<a name="line.316"></a>
-<span class="sourceLineNo">317</span>   * Add the specified KeyValue to this Put operation.  Operation assumes that<a name="line.317"></a>
-<span class="sourceLineNo">318</span>   * the passed KeyValue is immutable and its backing array will not be modified<a name="line.318"></a>
-<span class="sourceLineNo">319</span>   * for the duration of this Put.<a name="line.319"></a>
-<span class="sourceLineNo">320</span>   * @param kv individual KeyValue<a name="line.320"></a>
-<span class="sourceLineNo">321</span>   * @return this<a name="line.321"></a>
-<span class="sourceLineNo">322</span>   * @throws java.io.IOException e<a name="line.322"></a>
-<span class="sourceLineNo">323</span>   */<a name="line.323"></a>
-<span class="sourceLineNo">324</span>  public Put add(Cell kv) throws IOException{<a name="line.324"></a>
-<span class="sourceLineNo">325</span>    byte [] family = CellUtil.cloneFamily(kv);<a name="line.325"></a>
-<span class="sourceLineNo">326</span>    List&lt;Cell&gt; list = getCellList(family);<a name="line.326"></a>
-<span class="sourceLineNo">327</span>    //Checking that the row of the kv is the same as the put<a name="line.327"></a>
-<span class="sourceLineNo">328</span>    if (!CellUtil.matchingRow(kv, this.row)) {<a name="line.328"></a>
-<span class="sourceLineNo">329</span>      throw new WrongRowIOException("The row in " + kv.toString() +<a name="line.329"></a>
-<span class="sourceLineNo">330</span>        " doesn't match the original one " +  Bytes.toStringBinary(this.row));<a name="line.330"></a>
-<span class="sourceLineNo">331</span>    }<a name="line.331"></a>
-<span class="sourceLineNo">332</span>    list.add(kv);<a name="line.332"></a>
-<span class="sourceLineNo">333</span>    familyMap.put(family, list);<a name="line.333"></a>
-<span class="sourceLineNo">334</span>    return this;<a name="line.334"></a>
-<span class="sourceLineNo">335</span>  }<a name="line.335"></a>
-<span class="sourceLineNo">336</span><a name="line.336"></a>
-<span class="sourceLineNo">337</span>  /**<a name="line.337"></a>
-<span class="sourceLineNo">338</span>   * A convenience method to determine if this object's familyMap contains<a name="line.338"></a>
-<span class="sourceLineNo">339</span>   * a value assigned to the given family &amp;amp; qualifier.<a name="line.339"></a>
-<span class="sourceLineNo">340</span>   * Both given arguments must match the KeyValue object to return true.<a name="line.340"></a>
-<span class="sourceLineNo">341</span>   *<a name="line.341"></a>
-<span class="sourceLineNo">342</span>   * @param family column family<a name="line.342"></a>
-<span class="sourceLineNo">343</span>   * @param qualifier column qualifier<a name="line.343"></a>
-<span class="sourceLineNo">344</span>   * @return returns true if the given family and qualifier already has an<a name="line.344"></a>
-<span class="sourceLineNo">345</span>   * existing KeyValue object in the family map.<a name="line.345"></a>
-<span class="sourceLineNo">346</span>   */<a name="line.346"></a>
-<span class="sourceLineNo">347</span>  public boolean has(byte [] family, byte [] qualifier) {<a name="line.347"></a>
-<span class="sourceLineNo">348</span>  return has(family, qualifier, this.ts, HConstants.EMPTY_BYTE_ARRAY, true, true);<a name="line.348"></a>
-<span class="sourceLineNo">349</span>  }<a name="line.349"></a>
-<span class="sourceLineNo">350</span><a name="line.350"></a>
-<span class="sourceLineNo">351</span>  /**<a name="line.351"></a>
-<span class="sourceLineNo">352</span>   * A convenience method to determine if this object's familyMap contains<a name="line.352"></a>
-<span class="sourceLineNo">353</span>   * a value assigned to the given family, qualifier and timestamp.<a name="line.353"></a>
-<span class="sourceLineNo">354</span>   * All 3 given arguments must match the KeyValue object to return true.<a name="line.354"></a>
-<span class="sourceLineNo">355</span>   *<a name="line.355"></a>
-<span class="sourceLineNo">356</span>   * @param family column family<a name="line.356"></a>
-<span class="sourceLineNo">357</span>   * @param qualifier column qualifier<a name="line.357"></a>
-<span class="sourceLineNo">358</span>   * @param ts timestamp<a name="line.358"></a>
-<span class="sourceLineNo">359</span>   * @return returns true if the given family, qualifier and timestamp already has an<a name="line.359"></a>
-<span class="sourceLineNo">360</span>   * existing KeyValue object in the family map.<a name="line.360"></a>
-<span class="sourceLineNo">361</span>   */<a name="line.361"></a>
-<span class="sourceLineNo">362</span>  public boolean has(byte [] family, byte [] qualifier, long ts) {<a name="line.362"></a>
-<span class="sourceLineNo">363</span>  return has(family, qualifier, ts, HConstants.EMPTY_BYTE_ARRAY, false, true);<a name="line.363"></a>
-<span class="sourceLineNo">364</span>  }<a name="line.364"></a>
-<span class="sourceLineNo">365</span><a name="line.365"></a>
-<span class="sourceLineNo">366</span>  /**<a name="line.366"></a>
-<span class="sourceLineNo">367</span>   * A convenience method to determine if this object's familyMap contains<a name="line.367"></a>
-<span class="sourceLineNo">368</span>   * a value assigned to the given family, qualifier and timestamp.<a name="line.368"></a>
-<span class="sourceLineNo">369</span>   * All 3 given arguments must match the KeyValue object to return true.<a name="line.369"></a>
-<span class="sourceLineNo">370</span>   *<a name="line.370"></a>
-<span class="sourceLineNo">371</span>   * @param family column family<a name="line.371"></a>
-<span class="sourceLineNo">372</span>   * @param qualifier column qualifier<a name="line.372"></a>
-<span class="sourceLineNo">373</span>   * @param value value to check<a name="line.373"></a>
-<span class="sourceLineNo">374</span>   * @return returns true if the given family, qualifier and value already has an<a name="line.374"></a>
-<span class="sourceLineNo">375</span>   * existing KeyValue object in the family map.<a name="line.375"></a>
-<span class="sourceLineNo">376</span>   */<a name="line.376"></a>
-<span class="sourceLineNo">377</span>  public boolean has(byte [] family, byte [] qualifier, byte [] value) {<a name="line.377"></a>
-<span class="sourceLineNo">378</span>    return has(family, qualifier, this.ts, value, true, false);<a name="line.378"></a>
-<span class="sourceLineNo">379</span>  }<a name="line.379"></a>
-<span class="sourceLineNo">380</span><a name="line.380"></a>
-<span class="sourceLineNo">381</span>  /**<a name="line.381"></a>
-<span class="sourceLineNo">382</span>   * A convenience method to determine if this object's familyMap contains<a name="line.382"></a>
-<span class="sourceLineNo">383</span>   * the given value assigned to the given family, qualifier and timestamp.<a name="line.383"></a>
-<span class="sourceLineNo">384</span>   * All 4 given arguments must match the KeyValue object to return true.<a name="line.384"></a>
-<span class="sourceLineNo">385</span>   *<a name="line.385"></a>
-<span class="sourceLineNo">386</span>   * @param family column family<a name="line.386"></a>
-<span class="sourceLineNo">387</span>   * @param qualifier column qualifier<a name="line.387"></a>
-<span class="sourceLineNo">388</span>   * @param ts timestamp<a name="line.388"></a>
-<span class="sourceLineNo">389</span>   * @param value value to check<a name="line.389"></a>
-<span class="sourceLineNo">390</span>   * @return returns true if the given family, qualifier timestamp and value<a name="line.390"></a>
-<span class="sourceLineNo">391</span>   * already has an existing KeyValue object in the family map.<a name="line.391"></a>
-<span class="sourceLineNo">392</span>   */<a name="line.392"></a>
-<span class="sourceLineNo">393</span>  public boolean has(byte [] family, byte [] qualifier, long ts, byte [] value) {<a name="line.393"></a>
-<span class="sourceLineNo">394</span>      return has(family, qualifier, ts, value, false, false);<a name="line.394"></a>
-<span class="sourceLineNo">395</span>  }<a name="line.395"></a>
-<span class="sourceLineNo">396</span><a name="line.396"></a>
-<span class="sourceLineNo">397</span>  /*<a name="line.397"></a>
-<span class="sourceLineNo">398</span>   * Private method to determine if this object's familyMap contains<a name="line.398"></a>
-<span class="sourceLineNo">399</span>   * the given value assigned to the given family, qualifier and timestamp<a name="line.399"></a>
-<span class="sourceLineNo">400</span>   * respecting the 2 boolean arguments<a name="line.400"></a>
-<span class="sourceLineNo">401</span>   *<a name="line.401"></a>
-<span class="sourceLineNo">402</span>   * @param family<a name="line.402"></a>
-<span class="sourceLineNo">403</span>   * @param qualifier<a name="line.403"></a>
-<span class="sourceLineNo">404</span>   * @param ts<a name="line.404"></a>
-<span class="sourceLineNo">405</span>   * @param value<a name="line.405"></a>
-<span class="sourceLineNo">406</span>   * @param ignoreTS<a name="line.406"></a>
-<span class="sourceLineNo">407</span>   * @param ignoreValue<a name="line.407"></a>
-<span class="sourceLineNo">408</span>   * @return returns true if the given family, qualifier timestamp and value<a name="line.408"></a>
-<span class="sourceLineNo">409</span>   * already has an existing KeyValue object in the family map.<a name="line.409"></a>
-<span class="sourceLineNo">410</span>   */<a name="line.410"></a>
-<span class="sourceLineNo">411</span>  private boolean has(byte[] family, byte[] qualifier, long ts, byte[] value,<a name="line.411"></a>
-<span class="sourceLineNo">412</span>                      boolean ignoreTS, boolean ignoreValue) {<a name="line.412"></a>
-<span class="sourceLineNo">413</span>    List&lt;Cell&gt; list = getCellList(family);<a name="line.413"></a>
-<span class="sourceLineNo">414</span>    if (list.isEmpty()) {<a name="line.414"></a>
-<span class="sourceLineNo">415</span>      return false;<a name="line.415"></a>
-<span class="sourceLineNo">416</span>    }<a name="line.416"></a>
-<span class="sourceLineNo">417</span>    // Boolean analysis of ignoreTS/ignoreValue.<a name="line.417"></a>
-<span class="sourceLineNo">418</span>    // T T =&gt; 2<a name="line.418"></a>
-<span class="sourceLineNo">419</span>    // T F =&gt; 3 (first is always true)<a name="line.419"></a>
-<span class="sourceLineNo">420</span>    // F T =&gt; 2<a name="line.420"></a>
-<span class="sourceLineNo">421</span>    // F F =&gt; 1<a name="line.421"></a>
-<span class="sourceLineNo">422</span>    if (!ignoreTS &amp;&amp; !ignoreValue) {<a name="line.422"></a>
-<span class="sourceLineNo">423</span>      for (Cell cell : list) {<a name="line.423"></a>
-<span class="sourceLineNo">424</span>        if (CellUtil.matchingFamily(cell, family) &amp;&amp;<a name="line.424"></a>
-<span class="sourceLineNo">425</span>            CellUtil.matchingQualifier(cell, qualifier)  &amp;&amp;<a name="line.425"></a>
-<span class="sourceLineNo">426</span>            CellUtil.matchingValue(cell, value) &amp;&amp;<a name="line.426"></a>
-<span class="sourceLineNo">427</span>            cell.getTimestamp() == ts) {<a name="line.427"></a>
+<span class="sourceLineNo">219</span>    return this;<a name="line.219"></a>
+<span class="sourceLineNo">220</span>  }<a name="line.220"></a>
+<span class="sourceLineNo">221</span><a name="line.221"></a>
+<span class="sourceLineNo">222</span>  /**<a name="line.222"></a>
+<span class="sourceLineNo">223</span>   * See {@link #addColumn(byte[], byte[], long, byte[])}. This version expects<a name="line.223"></a>
+<span class="sourceLineNo">224</span>   * that the underlying arrays won't change. It's intended<a name="line.224"></a>
+<span class="sourceLineNo">225</span>   * for usage internal HBase to and for advanced client applications.<a name="line.225"></a>
+<span class="sourceLineNo">226</span>   */<a name="line.226"></a>
+<span class="sourceLineNo">227</span>  public Put addImmutable(byte [] family, byte [] qualifier, long ts, byte [] value) {<a name="line.227"></a>
+<span class="sourceLineNo">228</span>    // Family can not be null, otherwise NullPointerException is thrown when putting the cell into familyMap<a name="line.228"></a>
+<span class="sourceLineNo">229</span>    if (family == null) {<a name="line.229"></a>
+<span class="sourceLineNo">230</span>      throw new IllegalArgumentException("Family cannot be null");<a name="line.230"></a>
+<span class="sourceLineNo">231</span>    }<a name="line.231"></a>
+<span class="sourceLineNo">232</span><a name="line.232"></a>
+<span class="sourceLineNo">233</span>    // Check timestamp<a name="line.233"></a>
+<span class="sourceLineNo">234</span>    if (ts &lt; 0) {<a name="line.234"></a>
+<span class="sourceLineNo">235</span>      throw new IllegalArgumentException("Timestamp cannot be negative. ts=" + ts);<a name="line.235"></a>
+<span class="sourceLineNo">236</span>    }<a name="line.236"></a>
+<span class="sourceLineNo">237</span><a name="line.237"></a>
+<span class="sourceLineNo">238</span>    List&lt;Cell&gt; list = getCellList(family);<a name="line.238"></a>
+<span class="sourceLineNo">239</span>    list.add(new IndividualBytesFieldCell(this.row, family, qualifier, ts, KeyValue.Type.Put, value));<a name="line.239"></a>
+<span class="sourceLineNo">240</span>    return this;<a name="line.240"></a>
+<span class="sourceLineNo">241</span>  }<a name="line.241"></a>
+<span class="sourceLineNo">242</span><a name="line.242"></a>
+<span class="sourceLineNo">243</span>  /**<a name="line.243"></a>
+<span class="sourceLineNo">244</span>   * This expects that the underlying arrays won't change. It's intended<a name="line.244"></a>
+<span class="sourceLineNo">245</span>   * for usage internal HBase to and for advanced client applications.<a name="line.245"></a>
+<span class="sourceLineNo">246</span>   * &lt;p&gt;Marked as audience Private as of 1.2.0. {@link Tag} is an internal implementation detail<a name="line.246"></a>
+<span class="sourceLineNo">247</span>   * that should not be exposed publicly.<a name="line.247"></a>
+<span class="sourceLineNo">248</span>   */<a name="line.248"></a>
+<span class="sourceLineNo">249</span>  @InterfaceAudience.Private<a name="line.249"></a>
+<span class="sourceLineNo">250</span>  public Put addImmutable(byte[] family, byte[] qualifier, long ts, byte[] value, Tag[] tag) {<a name="line.250"></a>
+<span class="sourceLineNo">251</span>    List&lt;Cell&gt; list = getCellList(family);<a name="line.251"></a>
+<span class="sourceLineNo">252</span>    KeyValue kv = createPutKeyValue(family, qualifier, ts, value, tag);<a name="line.252"></a>
+<span class="sourceLineNo">253</span>    list.add(kv);<a name="line.253"></a>
+<span class="sourceLineNo">254</span>    return this;<a name="line.254"></a>
+<span class="sourceLineNo">255</span>  }<a name="line.255"></a>
+<span class="sourceLineNo">256</span><a name="line.256"></a>
+<span class="sourceLineNo">257</span>  /**<a name="line.257"></a>
+<span class="sourceLineNo">258</span>   * This expects that the underlying arrays won't change. It's intended<a name="line.258"></a>
+<span class="sourceLineNo">259</span>   * for usage internal HBase to and for advanced client applications.<a name="line.259"></a>
+<span class="sourceLineNo">260</span>   * &lt;p&gt;Marked as audience Private as of 1.2.0. {@link Tag} is an internal implementation detail<a name="line.260"></a>
+<span class="sourceLineNo">261</span>   * that should not be exposed publicly.<a name="line.261"></a>
+<span class="sourceLineNo">262</span>   */<a name="line.262"></a>
+<span class="sourceLineNo">263</span>  @InterfaceAudience.Private<a name="line.263"></a>
+<span class="sourceLineNo">264</span>  public Put addImmutable(byte[] family, ByteBuffer qualifier, long ts, ByteBuffer value,<a name="line.264"></a>
+<span class="sourceLineNo">265</span>                          Tag[] tag) {<a name="line.265"></a>
+<span class="sourceLineNo">266</span>    if (ts &lt; 0) {<a name="line.266"></a>
+<span class="sourceLineNo">267</span>      throw new IllegalArgumentException("Timestamp cannot be negative. ts=" + ts);<a name="line.267"></a>
+<span class="sourceLineNo">268</span>    }<a name="line.268"></a>
+<span class="sourceLineNo">269</span>    List&lt;Cell&gt; list = getCellList(family);<a name="line.269"></a>
+<span class="sourceLineNo">270</span>    KeyValue kv = createPutKeyValue(family, qualifier, ts, value, tag);<a name="line.270"></a>
+<span class="sourceLineNo">271</span>    list.add(kv);<a name="line.271"></a>
+<span class="sourceLineNo">272</span>    return this;<a name="line.272"></a>
+<span class="sourceLineNo">273</span>  }<a name="line.273"></a>
+<span class="sourceLineNo">274</span><a name="line.274"></a>
+<span class="sourceLineNo">275</span><a name="line.275"></a>
+<span class="sourceLineNo">276</span>  /**<a name="line.276"></a>
+<span class="sourceLineNo">277</span>   * Add the specified column and value, with the specified timestamp as<a name="line.277"></a>
+<span class="sourceLineNo">278</span>   * its version to this Put operation.<a name="line.278"></a>
+<span class="sourceLineNo">279</span>   * @param family family name<a name="line.279"></a>
+<span class="sourceLineNo">280</span>   * @param qualifier column qualifier<a name="line.280"></a>
+<span class="sourceLineNo">281</span>   * @param ts version timestamp<a name="line.281"></a>
+<span class="sourceLineNo">282</span>   * @param value column value<a name="line.282"></a>
+<span class="sourceLineNo">283</span>   * @return this<a name="line.283"></a>
+<span class="sourceLineNo">284</span>   */<a name="line.284"></a>
+<span class="sourceLineNo">285</span>  public Put addColumn(byte[] family, ByteBuffer qualifier, long ts, ByteBuffer value) {<a name="line.285"></a>
+<span class="sourceLineNo">286</span>    if (ts &lt; 0) {<a name="line.286"></a>
+<span class="sourceLineNo">287</span>      throw new IllegalArgumentException("Timestamp cannot be negative. ts=" + ts);<a name="line.287"></a>
+<span class="sourceLineNo">288</span>    }<a name="line.288"></a>
+<span class="sourceLineNo">289</span>    List&lt;Cell&gt; list = getCellList(family);<a name="line.289"></a>
+<span class="sourceLineNo">290</span>    KeyValue kv = createPutKeyValue(family, qualifier, ts, value, null);<a name="line.290"></a>
+<span class="sourceLineNo">291</span>    list.add(kv);<a name="line.291"></a>
+<span class="sourceLineNo">292</span>    return this;<a name="line.292"></a>
+<span class="sourceLineNo">293</span>  }<a name="line.293"></a>
+<span class="sourceLineNo">294</span><a name="line.294"></a>
+<span class="sourceLineNo">295</span>  /**<a name="line.295"></a>
+<span class="sourceLineNo">296</span>   * See {@link #addColumn(byte[], ByteBuffer, long, ByteBuffer)}. This version expects<a name="line.296"></a>
+<span class="sourceLineNo">297</span>   * that the underlying arrays won't change. It's intended<a name="line.297"></a>
+<span class="sourceLineNo">298</span>   * for usage internal HBase to and for advanced client applications.<a name="line.298"></a>
+<span class="sourceLineNo">299</span>   */<a name="line.299"></a>
+<span class="sourceLineNo">300</span>  public Put addImmutable(byte[] family, ByteBuffer qualifier, long ts, ByteBuffer value) {<a name="line.300"></a>
+<span class="sourceLineNo">301</span>    if (ts &lt; 0) {<a name="line.301"></a>
+<span class="sourceLineNo">302</span>      throw new IllegalArgumentException("Timestamp cannot be negative. ts=" + ts);<a name="line.302"></a>
+<span class="sourceLineNo">303</span>    }<a name="line.303"></a>
+<span class="sourceLineNo">304</span>    List&lt;Cell&gt; list = getCellList(family);<a name="line.304"></a>
+<span class="sourceLineNo">305</span>    KeyValue kv = createPutKeyValue(family, qualifier, ts, value, null);<a name="line.305"></a>
+<span class="sourceLineNo">306</span>    list.add(kv);<a name="line.306"></a>
+<span class="sourceLineNo">307</span>    return this;<a name="line.307"></a>
+<span class="sourceLineNo">308</span>  }<a name="line.308"></a>
+<span class="sourceLineNo">309</span><a name="line.309"></a>
+<span class="sourceLineNo">310</span>  /**<a name="line.310"></a>
+<span class="sourceLineNo">311</span>   * Add the specified KeyValue to this Put operation.  Operation assumes that<a name="line.311"></a>
+<span class="sourceLineNo">312</span>   * the passed KeyValue is immutable and its backing array will not be modified<a name="line.312"></a>
+<span class="sourceLineNo">313</span>   * for the duration of this Put.<a name="line.313"></a>
+<span class="sourceLineNo">314</span>   * @param kv individual KeyValue<a name="line.314"></a>
+<span class="sourceLineNo">315</span>   * @return this<a name="line.315"></a>
+<span class="sourceLineNo">316</span>   * @throws java.io.IOException e<a name="line.316"></a>
+<span class="sourceLineNo">317</span>   */<a name="line.317"></a>
+<span class="sourceLineNo">318</span>  public Put add(Cell kv) throws IOException{<a name="line.318"></a>
+<span class="sourceLineNo">319</span>    byte [] family = CellUtil.cloneFamily(kv);<a name="line.319"></a>
+<span class="sourceLineNo">320</span>    List&lt;Cell&gt; list = getCellList(family);<a name="line.320"></a>
+<span class="sourceLineNo">321</span>    //Checking that the row of the kv is the same as the put<a name="line.321"></a>
+<span class="sourceLineNo">322</span>    if (!CellUtil.matchingRow(kv, this.row)) {<a name="line.322"></a>
+<span class="sourceLineNo">323</span>      throw new WrongRowIOException("The row in " + kv.toString() +<a name="line.323"></a>
+<span class="sourceLineNo">324</span>        " doesn't match the original one " +  Bytes.toStringBinary(this.row));<a name="line.324"></a>
+<span class="sourceLineNo">325</span>    }<a name="line.325"></a>
+<span class="sourceLineNo">326</span>    list.add(kv);<a name="line.326"></a>
+<span class="sourceLineNo">327</span>    return this;<a name="line.327"></a>
+<span class="sourceLineNo">328</span>  }<a name="line.328"></a>
+<span class="sourceLineNo">329</span><a name="line.329"></a>
+<span class="sourceLineNo">330</span>  /**<a name="line.330"></a>
+<span class="sourceLineNo">331</span>   * A convenience method to determine if this object's familyMap contains<a name="line.331"></a>
+<span class="sourceLineNo">332</span>   * a value assigned to the given family &amp;amp; qualifier.<a name="line.332"></a>
+<span class="sourceLineNo">333</span>   * Both given arguments must match the KeyValue object to return true.<a name="line.333"></a>
+<span class="sourceLineNo">334</span>   *<a name="line.334"></a>
+<span class="sourceLineNo">335</span>   * @param family column family<a name="line.335"></a>
+<span class="sourceLineNo">336</span>   * @param qualifier column qualifier<a name="line.336"></a>
+<span class="sourceLineNo">337</span>   * @return returns true if the given family and qualifier already has an<a name="line.337"></a>
+<span class="sourceLineNo">338</span>   * existing KeyValue object in the family map.<a name="line.338"></a>
+<span class="sourceLineNo">339</span>   */<a name="line.339"></a>
+<span class="sourceLineNo">340</span>  public boolean has(byte [] family, byte [] qualifier) {<a name="line.340"></a>
+<span class="sourceLineNo">341</span>  return has(family, qualifier, this.ts, HConstants.EMPTY_BYTE_ARRAY, true, true);<a name="line.341"></a>
+<span class="sourceLineNo">342</span>  }<a name="line.342"></a>
+<span class="sourceLineNo">343</span><a name="line.343"></a>
+<span class="sourceLineNo">344</span>  /**<a name="line.344"></a>
+<span class="sourceLineNo">345</span>   * A convenience method to determine if this object's familyMap contains<a name="line.345"></a>
+<span class="sourceLineNo">346</span>   * a value assigned to the given family, qualifier and timestamp.<a name="line.346"></a>
+<span class="sourceLineNo">347</span>   * All 3 given arguments must match the KeyValue object to return true.<a name="line.347"></a>
+<span class="sourceLineNo">348</span>   *<a name="line.348"></a>
+<span class="sourceLineNo">349</span>   * @param family column family<a name="line.349"></a>
+<span class="sourceLineNo">350</span>   * @param qualifier column qualifier<a name="line.350"></a>
+<span class="sourceLineNo">351</span>   * @param ts timestamp<a name="line.351"></a>
+<span class="sourceLineNo">352</span>   * @return returns true if the given family, qualifier and timestamp already has an<a name="line.352"></a>
+<span class="sourceLineNo">353</span>   * existing KeyValue object in the family map.<a name="line.353"></a>
+<span class="sourceLineNo">354</span>   */<a name="line.354"></a>
+<span class="sourceLineNo">355</span>  public boolean has(byte [] family, byte [] qualifier, long ts) {<a name="line.355"></a>
+<span class="sourceLineNo">356</span>  return has(family, qualifier, ts, HConstants.EMPTY_BYTE_ARRAY, false, true);<a name="line.356"></a>
+<span class="sourceLineNo">357</span>  }<a name="line.357"></a>
+<span class="sourceLineNo">358</span><a name="line.358"></a>
+<span class="sourceLineNo">359</span>  /**<a name="line.359"></a>
+<span class="sourceLineNo">360</span>   * A convenience method to determine if this object's familyMap contains<a name="line.360"></a>
+<span class="sourceLineNo">361</span>   * a value assigned to the given family, qualifier and timestamp.<a name="line.361"></a>
+<span class="sourceLineNo">362</span>   * All 3 given arguments must match the KeyValue object to return true.<a name="line.362"></a>
+<span class="sourceLineNo">363</span>   *<a name="line.363"></a>
+<span class="sourceLineNo">364</span>   * @param family column family<a name="line.364"></a>
+<span class="sourceLineNo">365</span>   * @param qualifier column qualifier<a name="line.365"></a>
+<span class="sourceLineNo">366</span>   * @param value value to check<a name="line.366"></a>
+<span class="sourceLineNo">367</span>   * @return returns true if the given family, qualifier and value already has an<a name="line.367"></a>
+<span class="sourceLineNo">368</span>   * existing KeyValue object in the family map.<a name="line.368"></a>
+<span class="sourceLineNo">369</span>   */<a name="line.369"></a>
+<span class="sourceLineNo">370</span>  public boolean has(byte [] family, byte [] qualifier, byte [] value) {<a name="line.370"></a>
+<span class="sourceLineNo">371</span>    return has(family, qualifier, this.ts, value, true, false);<a name="line.371"></a>
+<span class="sourceLineNo">372</span>  }<a name="line.372"></a>
+<span class="sourceLineNo">373</span><a name="line.373"></a>
+<span class="sourceLineNo">374</span>  /**<a name="line.374"></a>
+<span class="sourceLineNo">375</span>   * A convenience method to determine if this object's familyMap contains<a name="line.375"></a>
+<span class="sourceLineNo">376</span>   * the given value assigned to the given family, qualifier and timestamp.<a name="line.376"></a>
+<span class="sourceLineNo">377</span>   * All 4 given arguments must match the KeyValue object to return true.<a name="line.377"></a>
+<span class="sourceLineNo">378</span>   *<a name="line.378"></a>
+<span class="sourceLineNo">379</span>   * @param family column family<a name="line.379"></a>
+<span class="sourceLineNo">380</span>   * @param qualifier column qualifier<a name="line.380"></a>
+<span class="sourceLineNo">381</span>   * @param ts timestamp<a name="line.381"></a>
+<span class="sourceLineNo">382</span>   * @param value value to check<a name="line.382"></a>
+<span class="sourceLineNo">383</span>   * @return returns true if the given family, qualifier timestamp and value<a name="line.383"></a>
+<span class="sourceLineNo">384</span>   * already has an existing KeyValue object in the family map.<a name="line.384"></a>
+<span class="sourceLineNo">385</span>   */<a name="line.385"></a>
+<span class="sourceLineNo">386</span>  public boolean has(byte [] family, byte [] qualifier, long ts, byte [] value) {<a name="line.386"></a>
+<span class="sourceLineNo">387</span>      return has(family, qualifier, ts, value, false, false);<a name="line.387"></a>
+<span class="sourceLineNo">388</span>  }<a name="line.388"></a>
+<span class="sourceLineNo">389</span><a name="line.389"></a>
+<span class="sourceLineNo">390</span>  /*<a name="line.390"></a>
+<span class="sourceLineNo">391</span>   * Private method to determine if this object's familyMap contains<a name="line.391"></a>
+<span class="sourceLineNo">392</span>   * the given value assigned to the given family, qualifier and timestamp<a name="line.392"></a>
+<span class="sourceLineNo">393</span>   * respecting the 2 boolean arguments<a name="line.393"></a>
+<span class="sourceLineNo">394</span>   *<a name="line.394"></a>
+<span class="sourceLineNo">395</span>   * @param family<a name="line.395"></a>
+<span class="sourceLineNo">396</span>   * @param qualifier<a name="line.396"></a>
+<span class="sourceLineNo">397</span>   * @param ts<a name="line.397"></a>
+<span class="sourceLineNo">398</span>   * @param value<a name="line.398"></a>
+<span class="sourceLineNo">399</span>   * @param ignoreTS<a name="line.399"></a>
+<span class="sourceLineNo">400</span>   * @param ignoreValue<a name="line.400"></a>
+<span class="sourceLineNo">401</span>   * @return returns true if the given family, qualifier timestamp and value<a name="line.401"></a>
+<span class="sourceLineNo">402</span>   * already has an existing KeyValue object in the family map.<a name="line.402"></a>
+<span class="sourceLineNo">403</span>   */<a name="line.403"></a>
+<span class="sourceLineNo">404</span>  private boolean has(byte[] family, byte[] qualifier, long ts, byte[] value,<a name="line.404"></a>
+<span class="sourceLineNo">405</span>                      boolean ignoreTS, boolean ignoreValue) {<a name="line.405"></a>
+<span class="sourceLineNo">406</span>    List&lt;Cell&gt; list = getCellList(family);<a name="line.406"></a>
+<span class="sourceLineNo">407</span>    if (list.isEmpty()) {<a name="line.407"></a>
+<span class="sourceLineNo">408</span>      return false;<a name="line.408"></a>
+<span class="sourceLineNo">409</span>    }<a name="line.409"></a>
+<span class="sourceLineNo">410</span>    // Boolean analysis of ignoreTS/ignoreValue.<a name="line.410"></a>
+<span class="sourceLineNo">411</span>    // T T =&gt; 2<a name="line.411"></a>
+<span class="sourceLineNo">412</span>    // T F =&gt; 3 (first is always true)<a name="line.412"></a>
+<span class="sourceLineNo">413</span>    // F T =&gt; 2<a name="line.413"></a>
+<span class="sourceLineNo">414</span>    // F F =&gt; 1<a name="line.414"></a>
+<span class="sourceLineNo">415</span>    if (!ignoreTS &amp;&amp; !ignoreValue) {<a name="line.415"></a>
+<span class="sourceLineNo">416</span>      for (Cell cell : list) {<a name="line.416"></a>
+<span class="sourceLineNo">417</span>        if (CellUtil.matchingFamily(cell, family) &amp;&amp;<a name="line.417"></a>
+<span class="sourceLineNo">418</span>            CellUtil.matchingQualifier(cell, qualifier)  &amp;&amp;<a name="line.418"></a>
+<span class="sourceLineNo">419</span>            CellUtil.matchingValue(cell, value) &amp;&amp;<a name="line.419"></a>
+<span class="sourceLineNo">420</span>            cell.getTimestamp() == ts) {<a name="line.420"></a>
+<span class="sourceLineNo">421</span>          return true;<a name="line.421"></a>
+<span class="sourceLineNo">422</span>        }<a name="line.422"></a>
+<span class="sourceLineNo">423</span>      }<a name="line.423"></a>
+<span class="sourceLineNo">424</span>    } else if (ignoreValue &amp;&amp; !ignoreTS) {<a name="line.424"></a>
+<span class="sourceLineNo">425</span>      for (Cell cell : list) {<a name="line.425"></a>
+<span class="sourceLineNo">426</span>        if (CellUtil.matchingFamily(cell, family) &amp;&amp; CellUtil.matchingQualifier(cell, qualifier)<a name="line.426"></a>
+<span class="sourceLineNo">427</span>            &amp;&amp; cell.getTimestamp() == ts) {<a name="line.427"></a>
 <span class="sourceLineNo">428</span>          return true;<a name="line.428"></a>
 <span class="sourceLineNo">429</span>        }<a name="line.429"></a>
 <span class="sourceLineNo">430</span>      }<a name="line.430"></a>
-<span class="sourceLineNo">431</span>    } else if (ignoreValue &amp;&amp; !ignoreTS) {<a name="line.431"></a>
+<span class="sourceLineNo">431</span>    } else if (!ignoreValue &amp;&amp; ignoreTS) {<a name="line.431"></a>
 <span class="sourceLineNo">432</span>      for (Cell cell : list) {<a name="line.432"></a>
 <span class="sourceLineNo">433</span>        if (CellUtil.matchingFamily(cell, family) &amp;&amp; CellUtil.matchingQualifier(cell, qualifier)<a name="line.433"></a>
-<span class="sourceLineNo">434</span>            &amp;&amp; cell.getTimestamp() == ts) {<a name="line.434"></a>
+<span class="sourceLineNo">434</span>            &amp;&amp; CellUtil.matchingValue(cell, value)) {<a name="line.434"></a>
 <span class="sourceLineNo">435</span>          return true;<a name="line.435"></a>
 <span class="sourceLineNo">436</span>        }<a name="line.436"></a>
 <span class="sourceLineNo">437</span>      }<a name="line.437"></a>
-<span class="sourceLineNo">438</span>    } else if (!ignoreValue &amp;&amp; ignoreTS) {<a name="line.438"></a>
+<span class="sourceLineNo">438</span>    } else {<a name="line.438"></a>
 <span class="sourceLineNo">439</span>      for (Cell cell : list) {<a name="line.439"></a>
-<span class="sourceLineNo">440</span>        if (CellUtil.matchingFamily(cell, family) &amp;&amp; CellUtil.matchingQualifier(cell, qualifier)<a name="line.440"></a>
-<span class="sourceLineNo">441</span>            &amp;&amp; CellUtil.matchingValue(cell, value)) {<a name="line.441"></a>
+<span class="sourceLineNo">440</span>        if (CellUtil.matchingFamily(cell, family) &amp;&amp;<a name="line.440"></a>
+<span class="sourceLineNo">441</span>            CellUtil.matchingQualifier(cell, qualifier)) {<a name="line.441"></a>
 <span class="sourceLineNo">442</span>          return true;<a name="line.442"></a>
 <span class="sourceLineNo">443</span>        }<a name="line.443"></a>
 <span class="sourceLineNo">444</span>      }<a name="line.444"></a>
-<span class="sourceLineNo">445</span>    } else {<a name="line.445"></a>
-<span class="sourceLineNo">446</span>      for (Cell cell : list) {<a name="line.446"></a>
-<span class="sourceLineNo">447</span>        if (CellUtil.matchingFamily(cell, family) &amp;&amp;<a name="line.447"></a>
-<span class="sourceLineNo">448</span>            CellUtil.matchingQualifier(cell, qualifier)) {<a name="line.448"></a>
-<span class="sourceLineNo">449</span>          return true;<a name="line.449"></a>
-<span class="sourceLineNo">450</span>        }<a name="line.450"></a>
-<span class="sourceLineNo">451</span>      }<a name="line.451"></a>
-<span class="sourceLineNo">452</span>    }<a name="line.452"></a>
-<span class="sourceLineNo">453</span>    return false;<a name="line.453"></a>
-<span class="sourceLineNo">454</span>  }<a name="line.454"></a>
-<span class="sourceLineNo">455</span><a name="line.455"></a>
-<span class="sourceLineNo">456</span>  /**<a name="line.456"></a>
-<span class="sourceLineNo">457</span>   * Returns a list of all KeyValue objects with matching column family and qualifier.<a name="line.457"></a>
-<span class="sourceLineNo">458</span>   *<a name="line.458"></a>
-<span class="sourceLineNo">459</span>   * @param family column family<a name="line.459"></a>
-<span class="sourceLineNo">460</span>   * @param qualifier column qualifier<a name="line.460"></a>
-<span class="sourceLineNo">461</span>   * @return a list of KeyValue objects with the matching family and qualifier,<a name="line.461"></a>
-<span class="sourceLineNo">462</span>   * returns an empty list if one doesn't exist for the given family.<a name="line.462"></a>
-<span class="sourceLineNo">463</span>   */<a name="line.463"></a>
-<span class="sourceLineNo">464</span>  public List&lt;Cell&gt; get(byte[] family, byte[] qualifier) {<a name="line.464"></a>
-<span class="sourceLineNo">465</span>    List&lt;Cell&gt; filteredList = new ArrayList&lt;&gt;();<a name="line.465"></a>
-<span class="sourceLineNo">466</span>    for (Cell cell: getCellList(family)) {<a name="line.466"></a>
-<span class="sourceLineNo">467</span>      if (CellUtil.matchingQualifier(cell, qualifier)) {<a name="line.467"></a>
-<span class="sourceLineNo">468</span>        filteredList.add(cell);<a name="line.468"></a>
-<span class="sourceLineNo">469</span>      }<a name="line.469"></a>
-<span class="sourceLineNo">470</span>    }<a name="line.470"></a>
-<span class="sourceLineNo">471</span>    return filteredList;<a name="line.471"></a>
-<span class="sourceLineNo">472</span>  }<a name="line.472"></a>
-<span class="sourceLineNo">473</span><a name="line.473"></a>
-<span class="sourceLineNo">474</span>  @Override<a name="line.474"></a>
-<span class="sourceLineNo">475</span>  public Put setAttribute(String name, byte[] value) {<a name="line.475"></a>
-<span class="sourceLineNo">476</span>    return (Put) super.setAttribute(name, value);<a name="line.476"></a>
-<span class="sourceLineNo">477</span>  }<a name="line.477"></a>
-<span class="sourceLineNo">478</span><a name="line.478"></a>
-<span class="sourceLineNo">479</span>  @Override<a name="line.479"></a>
-<span class="sourceLineNo">480</span>  public Put setId(String id) {<a name="line.480"></a>
-<span class="sourceLineNo">481</span>    return (Put) super.setId(id);<a name="line.481"></a>
-<span class="sourceLineNo">482</span>  }<a name="line.482"></a>
-<span class="sourceLineNo">483</span><a name="line.483"></a>
-<span class="sourceLineNo">484</span>  @Override<a name="line.484"></a>
-<span class="sourceLineNo">485</span>  public Put setDurability(Durability d) {<a name="line.485"></a>
-<span class="sourceLineNo">486</span>    return (Put) super.setDurability(d);<a name="line.486"></a>
-<span class="sourceLineNo">487</span>  }<a name="line.487"></a>
-<span class="sourceLineNo">488</span><a name="line.488"></a>
-<span class="sourceLineNo">489</span>  @Override<a name="line.489"></a>
-<span class="sourceLineNo">490</span>  public Put setFamilyCellMap(NavigableMap&lt;byte[], List&lt;Cell&gt;&gt; map) {<a name="line.490"></a>
-<span class="sourceLineNo">491</span>    return (Put) super.setFamilyCellMap(map);<a name="line.491"></a>
-<span class="sourceLineNo">492</span>  }<a name="line.492"></a>
-<span class="sourceLineNo">493</span><a name="line.493"></a>
-<span class="sourceLineNo">494</span>  @Override<a name="line.494"></a>
-<span class="sourceLineNo">495</span>  public Put setClusterIds(List&lt;UUID&gt; clusterIds) {<a name="line.495"></a>
-<span class="sourceLineNo">496</span>    return (Put) super.setClusterIds(clusterIds);<a name="line.496"></a>
-<span class="sourceLineNo">497</span>  }<a name="line.497"></a>
-<span class="sourceLineNo">498</span><a name="line.498"></a>
-<span class="sourceLineNo">499</span>  @Override<a name="line.499"></a>
-<span class="sourceLineNo">500</span>  public Put setCellVisibility(CellVisibility expression) {<a name="line.500"></a>
-<span class="sourceLineNo">501</span>    return (Put) super.setCellVisibility(expression);<a name="line.501"></a>
-<span class="sourceLineNo">502</span>  }<a name="line.502"></a>
-<span class="sourceLineNo">503</span><a name="line.503"></a>
-<span class="sourceLineNo">504</span>  @Override<a name="line.504"></a>
-<span class="sourceLineNo">505</span>  public Put setACL(String user, Permission perms) {<a name="line.505"></a>
-<span class="sourceLineNo">506</span>    return (Put) super.setACL(user, perms);<a name="line.506"></a>
-<span class="sourceLineNo">507</span>  }<a name="line.507"></a>
-<span class="sourceLineNo">508</span><a name="line.508"></a>
-<span class="sourceLineNo">509</span>  @Override<a name="line.509"></a>
-<span class="sourceLineNo">510</span>  public Put setACL(Map&lt;String, Permission&gt; perms) {<a name="line.510"></a>
-<span class="sourceLineNo">511</span>    return (Put) super.setACL(perms);<a name="line.511"></a>
-<span class="sourceLineNo">512</span>  }<a name="line.512"></a>
-<span class="sourceLineNo">513</span><a name="line.513"></a>
-<span class="sourceLineNo">514</span>  @Override<a name="line.514"></a>
-<span class="sourceLineNo">515</span>  public Put setTTL(long ttl) {<a name="line.515"></a>
-<span class="sourceLineNo">516</span>    return (Put) super.setTTL(ttl);<a name="line.516"></a>
-<span class="sourceLineNo">517</span>  }<a name="line.517"></a>
-<span class="sourceLineNo">518</span>}<a name="line.518"></a>
+<span class="sourceLineNo">445</span>    }<a name="line.445"></a>
+<span class="sourceLineNo">446</span>    return false;<a name="line.446"></a>
+<span class="sourceLineNo">447</span>  }<a name="line.447"></a>
+<span class="sourceLineNo">448</span><a name="line.448"></a>
+<span class="sourceLineNo">449</span>  /**<a name="line.449"></a>
+<span class="sourceLineNo">450</span>   * Returns a list of all KeyValue objects with matching column family and qualifier.<a name="line.450"></a>
+<span class="sourceLineNo">451</span>   *<a name="line.451"></a>
+<span class="sourceLineNo">452</span>   * @param family column family<a name="line.452"></a>
+<span class="sourceLineNo">453</span>   * @param qualifier column qualifier<a name="line.453"></a>
+<span class="sourceLineNo">454</span>   * @return a list of KeyValue objects with the matching family and qualifier,<a name="line.454"></a>
+<span class="sourceLineNo">455</span>   * returns an empty list if one doesn't exist for the given family.<a name="line.455"></a>
+<span class="sourceLineNo">456</span>   */<a name="line.456"></a>
+<span class="sourceLineNo">457</span>  public List&lt;Cell&gt; get(byte[] family, byte[] qualifier) {<a name="line.457"></a>
+<span class="sourceLineNo">458</span>    List&lt;Cell&gt; filteredList = new ArrayList&lt;&gt;();<a name="line.458"></a>
+<span class="sourceLineNo">459</span>    for (Cell cell: getCellList(family)) {<a name="line.459"></a>
+<span class="sourceLineNo">460</span>      if (CellUtil.matchingQualifier(cell, qualifier)) {<a name="line.460"></a>
+<span class="sourceLineNo">461</span>        filteredList.add(cell);<a name="line.461"></a>
+<span class="sourceLineNo">462</span>      }<a name="line.462"></a>
+<span class="sourceLineNo">463</span>    }<a name="line.463"></a>
+<span class="sourceLineNo">464</span>    return filteredList;<a name="line.464"></a>
+<span class="sourceLineNo">465</span>  }<a name="line.465"></a>
+<span class="sourceLineNo">466</span><a name="line.466"></a>
+<span class="sourceLineNo">467</span>  @Override<a name="line.467"></a>
+<span class="sourceLineNo">468</span>  public Put setAttribute(String name, byte[] value) {<a name="line.468"></a>
+<span class="sourceLineNo">469</span>    return (Put) super.setAttribute(name, value);<a name="line.469"></a>
+<span class="sourceLineNo">470</span>  }<a name="line.470"></a>
+<span class="sourceLineNo">471</span><a name="line.471"></a>
+<span class="sourceLineNo">472</span>  @Override<a name="line.472"></a>
+<span class="sourceLineNo">473</span>  public Put setId(String id) {<a name="line.473"></a>
+<span class="sourceLineNo">474</span>    return (Put) super.setId(id);<a name="line.474"></a>
+<span class="sourceLineNo">475</span>  }<a name="line.475"></a>
+<span class="sourceLineNo">476</span><a name="line.476"></a>
+<span class="sourceLineNo">477</span>  @Override<a name="line.477"></a>
+<span class="sourceLineNo">478</span>  public Put setDurability(Durability d) {<a name="line.478"></a>
+<span class="sourceLineNo">479</span>    return (Put) super.setDurability(d);<a name="line.479"></a>
+<span class="sourceLineNo">480</span>  }<a name="line.480"></a>
+<span class="sourceLineNo">481</span><a name="line.481"></a>
+<span class="sourceLineNo">482</span>  @Override<a name="line.482"></a>
+<span class="sourceLineNo">483</span>  public Put setFamilyCellMap(NavigableMap&lt;byte[], List&lt;Cell&gt;&gt; map) {<a name="line.483"></a>
+<span class="sourceLineNo">484</span>    return (Put) super.setFamilyCellMap(map);<a name="line.484"></a>
+<span class="sourceLineNo">485</span>  }<a name="line.485"></a>
+<span class="sourceLineNo">486</span><a name="line.486"></a>
+<span class="sourceLineNo">487</span>  @Override<a name="line.487"></a>
+<span class="sourceLineNo">488</span>  public Put setClusterIds(List&lt;UUID&gt; clusterIds) {<a name="line.488"></a>
+<span class="sourceLineNo">489</span>    return (Put) super.setClusterIds(clusterIds);<a name="line.489"></a>
+<span class="sourceLineNo">490</span>  }<a name="line.490"></a>
+<span class="sourceLineNo">491</span><a name="line.491"></a>
+<span class="sourceLineNo">492</span>  @Override<a name="line.492"></a>
+<span class="sourceLineNo">493</span>  public Put setCellVisibility(CellVisibility expression) {<a name="line.493"></a>
+<span class="sourceLineNo">494</span>    return (Put) super.setCellVisibility(expression);<a name="line.494"></a>
+<span class="sourceLineNo">495</span>  }<a name="line.495"></a>
+<span class="sourceLineNo">496</span><a name="line.496"></a>
+<span class="sourceLineNo">497</span>  @Override<a name="line.497"></a>
+<span class="sourceLineNo">498</span>  public Put setACL(String user, Permission perms) {<a name="line.498"></a>
+<span class="sourceLineNo">499</span>    return (Put) super.setACL(user, perms);<a name="line.499"></a>
+<span class="sourceLineNo">500</span>  }<a name="line.500"></a>
+<span class="sourceLineNo">501</span><a name="line.501"></a>
+<span class="sourceLineNo">502</span>  @Override<a name="line.502"></a>
+<span class="sourceLineNo">503</span>  public Put setACL(Map&lt;String, Permission&gt; perms) {<a name="line.503"></a>
+<span class="sourceLineNo">504</span>    return (Put) super.setACL(perms);<a name="line.504"></a>
+<span class="sourceLineNo">505</span>  }<a name="line.505"></a>
+<span class="sourceLineNo">506</span><a name="line.506"></a>
+<span class="sourceLineNo">507</span>  @Override<a name="line.507"></a>
+<span class="sourceLineNo">508</span>  public Put setTTL(long ttl) {<a name="line.508"></a>
+<span class="sourceLineNo">509</span>    return (Put) super.setTTL(ttl);<a name="line.509"></a>
+<span class="sourceLineNo">510</span>  }<a name="line.510"></a>
+<span class="sourceLineNo">511</span>}<a name="line.511"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/c0fcd7f3/devapidocs/src-html/org/apache/hadoop/hbase/client/Scan.ReadType.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/client/Scan.ReadType.html b/devapidocs/src-html/org/apache/hadoop/hbase/client/Scan.ReadType.html
index 63ba3f6..dffd28e 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/client/Scan.ReadType.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/client/Scan.ReadType.html
@@ -348,12 +348,12 @@
 <span class="sourceLineNo">340</span>    NavigableSet&lt;byte []&gt; set = familyMap.get(family);<a name="line.340"></a>
 <span class="sourceLineNo">341</span>    if(set == null) {<a name="line.341"></a>
 <span class="sourceLineNo">342</span>      set = new TreeSet&lt;&gt;(Bytes.BYTES_COMPARATOR);<a name="line.342"></a>
-<span class="sourceLineNo">343</span>    }<a name="line.343"></a>
-<span class="sourceLineNo">344</span>    if (qualifier == null) {<a name="line.344"></a>
-<span class="sourceLineNo">345</span>      qualifier = HConstants.EMPTY_BYTE_ARRAY;<a name="line.345"></a>
-<span class="sourceLineNo">346</span>    }<a name="line.346"></a>
-<span class="sourceLineNo">347</span>    set.add(qualifier);<a name="line.347"></a>
-<span class="sourceLineNo">348</span>    familyMap.put(family, set);<a name="line.348"></a>
+<span class="sourceLineNo">343</span>      familyMap.put(family, set);<a name="line.343"></a>
+<span class="sourceLineNo">344</span>    }<a name="line.344"></a>
+<span class="sourceLineNo">345</span>    if (qualifier == null) {<a name="line.345"></a>
+<span class="sourceLineNo">346</span>      qualifier = HConstants.EMPTY_BYTE_ARRAY;<a name="line.346"></a>
+<span class="sourceLineNo">347</span>    }<a name="line.347"></a>
+<span class="sourceLineNo">348</span>    set.add(qualifier);<a name="line.348"></a>
 <span class="sourceLineNo">349</span>    return this;<a name="line.349"></a>
 <span class="sourceLineNo">350</span>  }<a name="line.350"></a>
 <span class="sourceLineNo">351</span><a name="line.351"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/c0fcd7f3/devapidocs/src-html/org/apache/hadoop/hbase/client/Scan.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/client/Scan.html b/devapidocs/src-html/org/apache/hadoop/hbase/client/Scan.html
index 63ba3f6..dffd28e 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/client/Scan.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/client/Scan.html
@@ -348,12 +348,12 @@
 <span class="sourceLineNo">340</span>    NavigableSet&lt;byte []&gt; set = familyMap.get(family);<a name="line.340"></a>
 <span class="sourceLineNo">341</span>    if(set == null) {<a name="line.341"></a>
 <span class="sourceLineNo">342</span>      set = new TreeSet&lt;&gt;(Bytes.BYTES_COMPARATOR);<a name="line.342"></a>
-<span class="sourceLineNo">343</span>    }<a name="line.343"></a>
-<span class="sourceLineNo">344</span>    if (qualifier == null) {<a name="line.344"></a>
-<span class="sourceLineNo">345</span>      qualifier = HConstants.EMPTY_BYTE_ARRAY;<a name="line.345"></a>
-<span class="sourceLineNo">346</span>    }<a name="line.346"></a>
-<span class="sourceLineNo">347</span>    set.add(qualifier);<a name="line.347"></a>
-<span class="sourceLineNo">348</span>    familyMap.put(family, set);<a name="line.348"></a>
+<span class="sourceLineNo">343</span>      familyMap.put(family, set);<a name="line.343"></a>
+<span class="sourceLineNo">344</span>    }<a name="line.344"></a>
+<span class="sourceLineNo">345</span>    if (qualifier == null) {<a name="line.345"></a>
+<span class="sourceLineNo">346</span>      qualifier = HConstants.EMPTY_BYTE_ARRAY;<a name="line.346"></a>
+<span class="sourceLineNo">347</span>    }<a name="line.347"></a>
+<span class="sourceLineNo">348</span>    set.add(qualifier);<a name="line.348"></a>
 <span class="sourceLineNo">349</span>    return this;<a name="line.349"></a>
 <span class="sourceLineNo">350</span>  }<a name="line.350"></a>
 <span class="sourceLineNo">351</span><a name="line.351"></a>


Mime
View raw message