hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [05/51] [partial] hbase-site git commit: Published site at 82d554e3783372cc6b05489452c815b57c06f6cd.
Date Fri, 19 May 2017 14:58:51 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/c635e71b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/TestIncrementsFromClientSide.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/client/TestIncrementsFromClientSide.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/TestIncrementsFromClientSide.html
index 5f53569..fea5523 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/client/TestIncrementsFromClientSide.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/TestIncrementsFromClientSide.html
@@ -233,271 +233,256 @@
 <span class="sourceLineNo">225</span>    } catch (IOException iox) {<a name="line.225"></a>
 <span class="sourceLineNo">226</span>      // success<a name="line.226"></a>
 <span class="sourceLineNo">227</span>    }<a name="line.227"></a>
-<span class="sourceLineNo">228</span>    try {<a name="line.228"></a>
-<span class="sourceLineNo">229</span>      // try null qualifier<a name="line.229"></a>
-<span class="sourceLineNo">230</span>      ht.incrementColumnValue(ROW, FAMILY, null, 5);<a name="line.230"></a>
-<span class="sourceLineNo">231</span>      fail("Should have thrown IOException");<a name="line.231"></a>
-<span class="sourceLineNo">232</span>    } catch (IOException iox) {<a name="line.232"></a>
-<span class="sourceLineNo">233</span>      // success<a name="line.233"></a>
-<span class="sourceLineNo">234</span>    }<a name="line.234"></a>
-<span class="sourceLineNo">235</span>    // try null row<a name="line.235"></a>
-<span class="sourceLineNo">236</span>    try {<a name="line.236"></a>
-<span class="sourceLineNo">237</span>      Increment incNoRow = new Increment((byte [])null);<a name="line.237"></a>
-<span class="sourceLineNo">238</span>      incNoRow.addColumn(FAMILY, COLUMN, 5);<a name="line.238"></a>
-<span class="sourceLineNo">239</span>      fail("Should have thrown IllegalArgumentException");<a name="line.239"></a>
-<span class="sourceLineNo">240</span>    } catch (IllegalArgumentException iax) {<a name="line.240"></a>
-<span class="sourceLineNo">241</span>      // success<a name="line.241"></a>
-<span class="sourceLineNo">242</span>    } catch (NullPointerException npe) {<a name="line.242"></a>
-<span class="sourceLineNo">243</span>      // success<a name="line.243"></a>
-<span class="sourceLineNo">244</span>    }<a name="line.244"></a>
-<span class="sourceLineNo">245</span>    // try null family<a name="line.245"></a>
-<span class="sourceLineNo">246</span>    try {<a name="line.246"></a>
-<span class="sourceLineNo">247</span>      Increment incNoFamily = new Increment(ROW);<a name="line.247"></a>
-<span class="sourceLineNo">248</span>      incNoFamily.addColumn(null, COLUMN, 5);<a name="line.248"></a>
-<span class="sourceLineNo">249</span>      fail("Should have thrown IllegalArgumentException");<a name="line.249"></a>
-<span class="sourceLineNo">250</span>    } catch (IllegalArgumentException iax) {<a name="line.250"></a>
-<span class="sourceLineNo">251</span>      // success<a name="line.251"></a>
-<span class="sourceLineNo">252</span>    }<a name="line.252"></a>
-<span class="sourceLineNo">253</span>    // try null qualifier<a name="line.253"></a>
-<span class="sourceLineNo">254</span>    try {<a name="line.254"></a>
-<span class="sourceLineNo">255</span>      Increment incNoQualifier = new Increment(ROW);<a name="line.255"></a>
-<span class="sourceLineNo">256</span>      incNoQualifier.addColumn(FAMILY, null, 5);<a name="line.256"></a>
-<span class="sourceLineNo">257</span>      fail("Should have thrown IllegalArgumentException");<a name="line.257"></a>
-<span class="sourceLineNo">258</span>    } catch (IllegalArgumentException iax) {<a name="line.258"></a>
-<span class="sourceLineNo">259</span>      // success<a name="line.259"></a>
-<span class="sourceLineNo">260</span>    }<a name="line.260"></a>
-<span class="sourceLineNo">261</span>  }<a name="line.261"></a>
-<span class="sourceLineNo">262</span><a name="line.262"></a>
-<span class="sourceLineNo">263</span>  @Test<a name="line.263"></a>
-<span class="sourceLineNo">264</span>  public void testIncrementOutOfOrder() throws Exception {<a name="line.264"></a>
-<span class="sourceLineNo">265</span>    LOG.info("Starting " + this.name.getMethodName());<a name="line.265"></a>
-<span class="sourceLineNo">266</span>    final TableName TABLENAME =<a name="line.266"></a>
-<span class="sourceLineNo">267</span>        TableName.valueOf(filterStringSoTableNameSafe(this.name.getMethodName()));<a name="line.267"></a>
-<span class="sourceLineNo">268</span>    Table ht = TEST_UTIL.createTable(TABLENAME, FAMILY);<a name="line.268"></a>
-<span class="sourceLineNo">269</span><a name="line.269"></a>
-<span class="sourceLineNo">270</span>    byte [][] QUALIFIERS = new byte [][] {<a name="line.270"></a>
-<span class="sourceLineNo">271</span>      Bytes.toBytes("B"), Bytes.toBytes("A"), Bytes.toBytes("C")<a name="line.271"></a>
-<span class="sourceLineNo">272</span>    };<a name="line.272"></a>
+<span class="sourceLineNo">228</span>    // try null row<a name="line.228"></a>
+<span class="sourceLineNo">229</span>    try {<a name="line.229"></a>
+<span class="sourceLineNo">230</span>      Increment incNoRow = new Increment((byte [])null);<a name="line.230"></a>
+<span class="sourceLineNo">231</span>      incNoRow.addColumn(FAMILY, COLUMN, 5);<a name="line.231"></a>
+<span class="sourceLineNo">232</span>      fail("Should have thrown IllegalArgumentException");<a name="line.232"></a>
+<span class="sourceLineNo">233</span>    } catch (IllegalArgumentException iax) {<a name="line.233"></a>
+<span class="sourceLineNo">234</span>      // success<a name="line.234"></a>
+<span class="sourceLineNo">235</span>    } catch (NullPointerException npe) {<a name="line.235"></a>
+<span class="sourceLineNo">236</span>      // success<a name="line.236"></a>
+<span class="sourceLineNo">237</span>    }<a name="line.237"></a>
+<span class="sourceLineNo">238</span>    // try null family<a name="line.238"></a>
+<span class="sourceLineNo">239</span>    try {<a name="line.239"></a>
+<span class="sourceLineNo">240</span>      Increment incNoFamily = new Increment(ROW);<a name="line.240"></a>
+<span class="sourceLineNo">241</span>      incNoFamily.addColumn(null, COLUMN, 5);<a name="line.241"></a>
+<span class="sourceLineNo">242</span>      fail("Should have thrown IllegalArgumentException");<a name="line.242"></a>
+<span class="sourceLineNo">243</span>    } catch (IllegalArgumentException iax) {<a name="line.243"></a>
+<span class="sourceLineNo">244</span>      // success<a name="line.244"></a>
+<span class="sourceLineNo">245</span>    }<a name="line.245"></a>
+<span class="sourceLineNo">246</span>  }<a name="line.246"></a>
+<span class="sourceLineNo">247</span><a name="line.247"></a>
+<span class="sourceLineNo">248</span>  @Test<a name="line.248"></a>
+<span class="sourceLineNo">249</span>  public void testIncrementOutOfOrder() throws Exception {<a name="line.249"></a>
+<span class="sourceLineNo">250</span>    LOG.info("Starting " + this.name.getMethodName());<a name="line.250"></a>
+<span class="sourceLineNo">251</span>    final TableName TABLENAME =<a name="line.251"></a>
+<span class="sourceLineNo">252</span>        TableName.valueOf(filterStringSoTableNameSafe(this.name.getMethodName()));<a name="line.252"></a>
+<span class="sourceLineNo">253</span>    Table ht = TEST_UTIL.createTable(TABLENAME, FAMILY);<a name="line.253"></a>
+<span class="sourceLineNo">254</span><a name="line.254"></a>
+<span class="sourceLineNo">255</span>    byte [][] QUALIFIERS = new byte [][] {<a name="line.255"></a>
+<span class="sourceLineNo">256</span>      Bytes.toBytes("B"), Bytes.toBytes("A"), Bytes.toBytes("C")<a name="line.256"></a>
+<span class="sourceLineNo">257</span>    };<a name="line.257"></a>
+<span class="sourceLineNo">258</span><a name="line.258"></a>
+<span class="sourceLineNo">259</span>    Increment inc = new Increment(ROW);<a name="line.259"></a>
+<span class="sourceLineNo">260</span>    for (int i=0; i&lt;QUALIFIERS.length; i++) {<a name="line.260"></a>
+<span class="sourceLineNo">261</span>      inc.addColumn(FAMILY, QUALIFIERS[i], 1);<a name="line.261"></a>
+<span class="sourceLineNo">262</span>    }<a name="line.262"></a>
+<span class="sourceLineNo">263</span>    ht.increment(inc);<a name="line.263"></a>
+<span class="sourceLineNo">264</span><a name="line.264"></a>
+<span class="sourceLineNo">265</span>    // Verify expected results<a name="line.265"></a>
+<span class="sourceLineNo">266</span>    Get get = new Get(ROW);<a name="line.266"></a>
+<span class="sourceLineNo">267</span>    Result r = ht.get(get);<a name="line.267"></a>
+<span class="sourceLineNo">268</span>    Cell [] kvs = r.rawCells();<a name="line.268"></a>
+<span class="sourceLineNo">269</span>    assertEquals(3, kvs.length);<a name="line.269"></a>
+<span class="sourceLineNo">270</span>    assertIncrementKey(kvs[0], ROW, FAMILY, QUALIFIERS[1], 1);<a name="line.270"></a>
+<span class="sourceLineNo">271</span>    assertIncrementKey(kvs[1], ROW, FAMILY, QUALIFIERS[0], 1);<a name="line.271"></a>
+<span class="sourceLineNo">272</span>    assertIncrementKey(kvs[2], ROW, FAMILY, QUALIFIERS[2], 1);<a name="line.272"></a>
 <span class="sourceLineNo">273</span><a name="line.273"></a>
-<span class="sourceLineNo">274</span>    Increment inc = new Increment(ROW);<a name="line.274"></a>
-<span class="sourceLineNo">275</span>    for (int i=0; i&lt;QUALIFIERS.length; i++) {<a name="line.275"></a>
-<span class="sourceLineNo">276</span>      inc.addColumn(FAMILY, QUALIFIERS[i], 1);<a name="line.276"></a>
-<span class="sourceLineNo">277</span>    }<a name="line.277"></a>
-<span class="sourceLineNo">278</span>    ht.increment(inc);<a name="line.278"></a>
-<span class="sourceLineNo">279</span><a name="line.279"></a>
-<span class="sourceLineNo">280</span>    // Verify expected results<a name="line.280"></a>
-<span class="sourceLineNo">281</span>    Get get = new Get(ROW);<a name="line.281"></a>
-<span class="sourceLineNo">282</span>    Result r = ht.get(get);<a name="line.282"></a>
-<span class="sourceLineNo">283</span>    Cell [] kvs = r.rawCells();<a name="line.283"></a>
+<span class="sourceLineNo">274</span>    // Now try multiple columns again<a name="line.274"></a>
+<span class="sourceLineNo">275</span>    inc = new Increment(ROW);<a name="line.275"></a>
+<span class="sourceLineNo">276</span>    for (int i=0; i&lt;QUALIFIERS.length; i++) {<a name="line.276"></a>
+<span class="sourceLineNo">277</span>      inc.addColumn(FAMILY, QUALIFIERS[i], 1);<a name="line.277"></a>
+<span class="sourceLineNo">278</span>    }<a name="line.278"></a>
+<span class="sourceLineNo">279</span>    ht.increment(inc);<a name="line.279"></a>
+<span class="sourceLineNo">280</span><a name="line.280"></a>
+<span class="sourceLineNo">281</span>    // Verify<a name="line.281"></a>
+<span class="sourceLineNo">282</span>    r = ht.get(get);<a name="line.282"></a>
+<span class="sourceLineNo">283</span>    kvs = r.rawCells();<a name="line.283"></a>
 <span class="sourceLineNo">284</span>    assertEquals(3, kvs.length);<a name="line.284"></a>
-<span class="sourceLineNo">285</span>    assertIncrementKey(kvs[0], ROW, FAMILY, QUALIFIERS[1], 1);<a name="line.285"></a>
-<span class="sourceLineNo">286</span>    assertIncrementKey(kvs[1], ROW, FAMILY, QUALIFIERS[0], 1);<a name="line.286"></a>
-<span class="sourceLineNo">287</span>    assertIncrementKey(kvs[2], ROW, FAMILY, QUALIFIERS[2], 1);<a name="line.287"></a>
-<span class="sourceLineNo">288</span><a name="line.288"></a>
-<span class="sourceLineNo">289</span>    // Now try multiple columns again<a name="line.289"></a>
-<span class="sourceLineNo">290</span>    inc = new Increment(ROW);<a name="line.290"></a>
-<span class="sourceLineNo">291</span>    for (int i=0; i&lt;QUALIFIERS.length; i++) {<a name="line.291"></a>
-<span class="sourceLineNo">292</span>      inc.addColumn(FAMILY, QUALIFIERS[i], 1);<a name="line.292"></a>
-<span class="sourceLineNo">293</span>    }<a name="line.293"></a>
-<span class="sourceLineNo">294</span>    ht.increment(inc);<a name="line.294"></a>
+<span class="sourceLineNo">285</span>    assertIncrementKey(kvs[0], ROW, FAMILY, QUALIFIERS[1], 2);<a name="line.285"></a>
+<span class="sourceLineNo">286</span>    assertIncrementKey(kvs[1], ROW, FAMILY, QUALIFIERS[0], 2);<a name="line.286"></a>
+<span class="sourceLineNo">287</span>    assertIncrementKey(kvs[2], ROW, FAMILY, QUALIFIERS[2], 2);<a name="line.287"></a>
+<span class="sourceLineNo">288</span>  }<a name="line.288"></a>
+<span class="sourceLineNo">289</span><a name="line.289"></a>
+<span class="sourceLineNo">290</span>  @Test<a name="line.290"></a>
+<span class="sourceLineNo">291</span>  public void testIncrementOnSameColumn() throws Exception {<a name="line.291"></a>
+<span class="sourceLineNo">292</span>    LOG.info("Starting " + this.name.getMethodName());<a name="line.292"></a>
+<span class="sourceLineNo">293</span>    final byte[] TABLENAME = Bytes.toBytes(filterStringSoTableNameSafe(this.name.getMethodName()));<a name="line.293"></a>
+<span class="sourceLineNo">294</span>    Table ht = TEST_UTIL.createTable(TableName.valueOf(TABLENAME), FAMILY);<a name="line.294"></a>
 <span class="sourceLineNo">295</span><a name="line.295"></a>
-<span class="sourceLineNo">296</span>    // Verify<a name="line.296"></a>
-<span class="sourceLineNo">297</span>    r = ht.get(get);<a name="line.297"></a>
-<span class="sourceLineNo">298</span>    kvs = r.rawCells();<a name="line.298"></a>
-<span class="sourceLineNo">299</span>    assertEquals(3, kvs.length);<a name="line.299"></a>
-<span class="sourceLineNo">300</span>    assertIncrementKey(kvs[0], ROW, FAMILY, QUALIFIERS[1], 2);<a name="line.300"></a>
-<span class="sourceLineNo">301</span>    assertIncrementKey(kvs[1], ROW, FAMILY, QUALIFIERS[0], 2);<a name="line.301"></a>
-<span class="sourceLineNo">302</span>    assertIncrementKey(kvs[2], ROW, FAMILY, QUALIFIERS[2], 2);<a name="line.302"></a>
-<span class="sourceLineNo">303</span>  }<a name="line.303"></a>
-<span class="sourceLineNo">304</span><a name="line.304"></a>
-<span class="sourceLineNo">305</span>  @Test<a name="line.305"></a>
-<span class="sourceLineNo">306</span>  public void testIncrementOnSameColumn() throws Exception {<a name="line.306"></a>
-<span class="sourceLineNo">307</span>    LOG.info("Starting " + this.name.getMethodName());<a name="line.307"></a>
-<span class="sourceLineNo">308</span>    final byte[] TABLENAME = Bytes.toBytes(filterStringSoTableNameSafe(this.name.getMethodName()));<a name="line.308"></a>
-<span class="sourceLineNo">309</span>    Table ht = TEST_UTIL.createTable(TableName.valueOf(TABLENAME), FAMILY);<a name="line.309"></a>
-<span class="sourceLineNo">310</span><a name="line.310"></a>
-<span class="sourceLineNo">311</span>    byte[][] QUALIFIERS =<a name="line.311"></a>
-<span class="sourceLineNo">312</span>        new byte[][] { Bytes.toBytes("A"), Bytes.toBytes("B"), Bytes.toBytes("C") };<a name="line.312"></a>
-<span class="sourceLineNo">313</span><a name="line.313"></a>
-<span class="sourceLineNo">314</span>    Increment inc = new Increment(ROW);<a name="line.314"></a>
-<span class="sourceLineNo">315</span>    for (int i = 0; i &lt; QUALIFIERS.length; i++) {<a name="line.315"></a>
-<span class="sourceLineNo">316</span>      inc.addColumn(FAMILY, QUALIFIERS[i], 1);<a name="line.316"></a>
-<span class="sourceLineNo">317</span>      inc.addColumn(FAMILY, QUALIFIERS[i], 1);<a name="line.317"></a>
-<span class="sourceLineNo">318</span>    }<a name="line.318"></a>
-<span class="sourceLineNo">319</span>    ht.increment(inc);<a name="line.319"></a>
-<span class="sourceLineNo">320</span><a name="line.320"></a>
-<span class="sourceLineNo">321</span>    // Verify expected results<a name="line.321"></a>
-<span class="sourceLineNo">322</span>    Get get = new Get(ROW);<a name="line.322"></a>
-<span class="sourceLineNo">323</span>    Result r = ht.get(get);<a name="line.323"></a>
-<span class="sourceLineNo">324</span>    Cell[] kvs = r.rawCells();<a name="line.324"></a>
-<span class="sourceLineNo">325</span>    assertEquals(3, kvs.length);<a name="line.325"></a>
-<span class="sourceLineNo">326</span>    assertIncrementKey(kvs[0], ROW, FAMILY, QUALIFIERS[0], 1);<a name="line.326"></a>
-<span class="sourceLineNo">327</span>    assertIncrementKey(kvs[1], ROW, FAMILY, QUALIFIERS[1], 1);<a name="line.327"></a>
-<span class="sourceLineNo">328</span>    assertIncrementKey(kvs[2], ROW, FAMILY, QUALIFIERS[2], 1);<a name="line.328"></a>
-<span class="sourceLineNo">329</span><a name="line.329"></a>
-<span class="sourceLineNo">330</span>    // Now try multiple columns again<a name="line.330"></a>
-<span class="sourceLineNo">331</span>    inc = new Increment(ROW);<a name="line.331"></a>
-<span class="sourceLineNo">332</span>    for (int i = 0; i &lt; QUALIFIERS.length; i++) {<a name="line.332"></a>
-<span class="sourceLineNo">333</span>      inc.addColumn(FAMILY, QUALIFIERS[i], 1);<a name="line.333"></a>
-<span class="sourceLineNo">334</span>      inc.addColumn(FAMILY, QUALIFIERS[i], 1);<a name="line.334"></a>
-<span class="sourceLineNo">335</span>    }<a name="line.335"></a>
-<span class="sourceLineNo">336</span>    ht.increment(inc);<a name="line.336"></a>
-<span class="sourceLineNo">337</span><a name="line.337"></a>
-<span class="sourceLineNo">338</span>    // Verify<a name="line.338"></a>
-<span class="sourceLineNo">339</span>    r = ht.get(get);<a name="line.339"></a>
-<span class="sourceLineNo">340</span>    kvs = r.rawCells();<a name="line.340"></a>
-<span class="sourceLineNo">341</span>    assertEquals(3, kvs.length);<a name="line.341"></a>
-<span class="sourceLineNo">342</span>    assertIncrementKey(kvs[0], ROW, FAMILY, QUALIFIERS[0], 2);<a name="line.342"></a>
-<span class="sourceLineNo">343</span>    assertIncrementKey(kvs[1], ROW, FAMILY, QUALIFIERS[1], 2);<a name="line.343"></a>
-<span class="sourceLineNo">344</span>    assertIncrementKey(kvs[2], ROW, FAMILY, QUALIFIERS[2], 2);<a name="line.344"></a>
-<span class="sourceLineNo">345</span><a name="line.345"></a>
-<span class="sourceLineNo">346</span>    ht.close();<a name="line.346"></a>
-<span class="sourceLineNo">347</span>  }<a name="line.347"></a>
-<span class="sourceLineNo">348</span><a name="line.348"></a>
-<span class="sourceLineNo">349</span>  @Test<a name="line.349"></a>
-<span class="sourceLineNo">350</span>  public void testIncrementIncrZeroAtFirst() throws Exception {<a name="line.350"></a>
-<span class="sourceLineNo">351</span>    LOG.info("Starting " + this.name.getMethodName());<a name="line.351"></a>
-<span class="sourceLineNo">352</span>    final TableName TABLENAME =<a name="line.352"></a>
-<span class="sourceLineNo">353</span>            TableName.valueOf(filterStringSoTableNameSafe(this.name.getMethodName()));<a name="line.353"></a>
-<span class="sourceLineNo">354</span>    Table ht = TEST_UTIL.createTable(TABLENAME, FAMILY);<a name="line.354"></a>
-<span class="sourceLineNo">355</span><a name="line.355"></a>
-<span class="sourceLineNo">356</span>    byte[] col1 = Bytes.toBytes("col1");<a name="line.356"></a>
-<span class="sourceLineNo">357</span>    byte[] col2 = Bytes.toBytes("col2");<a name="line.357"></a>
-<span class="sourceLineNo">358</span>    byte[] col3 = Bytes.toBytes("col3");<a name="line.358"></a>
-<span class="sourceLineNo">359</span><a name="line.359"></a>
-<span class="sourceLineNo">360</span>    // Now increment zero at first time incr<a name="line.360"></a>
-<span class="sourceLineNo">361</span>    Increment inc = new Increment(ROW);<a name="line.361"></a>
-<span class="sourceLineNo">362</span>    inc.addColumn(FAMILY, col1, 0);<a name="line.362"></a>
+<span class="sourceLineNo">296</span>    byte[][] QUALIFIERS =<a name="line.296"></a>
+<span class="sourceLineNo">297</span>        new byte[][] { Bytes.toBytes("A"), Bytes.toBytes("B"), Bytes.toBytes("C") };<a name="line.297"></a>
+<span class="sourceLineNo">298</span><a name="line.298"></a>
+<span class="sourceLineNo">299</span>    Increment inc = new Increment(ROW);<a name="line.299"></a>
+<span class="sourceLineNo">300</span>    for (int i = 0; i &lt; QUALIFIERS.length; i++) {<a name="line.300"></a>
+<span class="sourceLineNo">301</span>      inc.addColumn(FAMILY, QUALIFIERS[i], 1);<a name="line.301"></a>
+<span class="sourceLineNo">302</span>      inc.addColumn(FAMILY, QUALIFIERS[i], 1);<a name="line.302"></a>
+<span class="sourceLineNo">303</span>    }<a name="line.303"></a>
+<span class="sourceLineNo">304</span>    ht.increment(inc);<a name="line.304"></a>
+<span class="sourceLineNo">305</span><a name="line.305"></a>
+<span class="sourceLineNo">306</span>    // Verify expected results<a name="line.306"></a>
+<span class="sourceLineNo">307</span>    Get get = new Get(ROW);<a name="line.307"></a>
+<span class="sourceLineNo">308</span>    Result r = ht.get(get);<a name="line.308"></a>
+<span class="sourceLineNo">309</span>    Cell[] kvs = r.rawCells();<a name="line.309"></a>
+<span class="sourceLineNo">310</span>    assertEquals(3, kvs.length);<a name="line.310"></a>
+<span class="sourceLineNo">311</span>    assertIncrementKey(kvs[0], ROW, FAMILY, QUALIFIERS[0], 1);<a name="line.311"></a>
+<span class="sourceLineNo">312</span>    assertIncrementKey(kvs[1], ROW, FAMILY, QUALIFIERS[1], 1);<a name="line.312"></a>
+<span class="sourceLineNo">313</span>    assertIncrementKey(kvs[2], ROW, FAMILY, QUALIFIERS[2], 1);<a name="line.313"></a>
+<span class="sourceLineNo">314</span><a name="line.314"></a>
+<span class="sourceLineNo">315</span>    // Now try multiple columns again<a name="line.315"></a>
+<span class="sourceLineNo">316</span>    inc = new Increment(ROW);<a name="line.316"></a>
+<span class="sourceLineNo">317</span>    for (int i = 0; i &lt; QUALIFIERS.length; i++) {<a name="line.317"></a>
+<span class="sourceLineNo">318</span>      inc.addColumn(FAMILY, QUALIFIERS[i], 1);<a name="line.318"></a>
+<span class="sourceLineNo">319</span>      inc.addColumn(FAMILY, QUALIFIERS[i], 1);<a name="line.319"></a>
+<span class="sourceLineNo">320</span>    }<a name="line.320"></a>
+<span class="sourceLineNo">321</span>    ht.increment(inc);<a name="line.321"></a>
+<span class="sourceLineNo">322</span><a name="line.322"></a>
+<span class="sourceLineNo">323</span>    // Verify<a name="line.323"></a>
+<span class="sourceLineNo">324</span>    r = ht.get(get);<a name="line.324"></a>
+<span class="sourceLineNo">325</span>    kvs = r.rawCells();<a name="line.325"></a>
+<span class="sourceLineNo">326</span>    assertEquals(3, kvs.length);<a name="line.326"></a>
+<span class="sourceLineNo">327</span>    assertIncrementKey(kvs[0], ROW, FAMILY, QUALIFIERS[0], 2);<a name="line.327"></a>
+<span class="sourceLineNo">328</span>    assertIncrementKey(kvs[1], ROW, FAMILY, QUALIFIERS[1], 2);<a name="line.328"></a>
+<span class="sourceLineNo">329</span>    assertIncrementKey(kvs[2], ROW, FAMILY, QUALIFIERS[2], 2);<a name="line.329"></a>
+<span class="sourceLineNo">330</span><a name="line.330"></a>
+<span class="sourceLineNo">331</span>    ht.close();<a name="line.331"></a>
+<span class="sourceLineNo">332</span>  }<a name="line.332"></a>
+<span class="sourceLineNo">333</span><a name="line.333"></a>
+<span class="sourceLineNo">334</span>  @Test<a name="line.334"></a>
+<span class="sourceLineNo">335</span>  public void testIncrementIncrZeroAtFirst() throws Exception {<a name="line.335"></a>
+<span class="sourceLineNo">336</span>    LOG.info("Starting " + this.name.getMethodName());<a name="line.336"></a>
+<span class="sourceLineNo">337</span>    final TableName TABLENAME =<a name="line.337"></a>
+<span class="sourceLineNo">338</span>            TableName.valueOf(filterStringSoTableNameSafe(this.name.getMethodName()));<a name="line.338"></a>
+<span class="sourceLineNo">339</span>    Table ht = TEST_UTIL.createTable(TABLENAME, FAMILY);<a name="line.339"></a>
+<span class="sourceLineNo">340</span><a name="line.340"></a>
+<span class="sourceLineNo">341</span>    byte[] col1 = Bytes.toBytes("col1");<a name="line.341"></a>
+<span class="sourceLineNo">342</span>    byte[] col2 = Bytes.toBytes("col2");<a name="line.342"></a>
+<span class="sourceLineNo">343</span>    byte[] col3 = Bytes.toBytes("col3");<a name="line.343"></a>
+<span class="sourceLineNo">344</span><a name="line.344"></a>
+<span class="sourceLineNo">345</span>    // Now increment zero at first time incr<a name="line.345"></a>
+<span class="sourceLineNo">346</span>    Increment inc = new Increment(ROW);<a name="line.346"></a>
+<span class="sourceLineNo">347</span>    inc.addColumn(FAMILY, col1, 0);<a name="line.347"></a>
+<span class="sourceLineNo">348</span>    ht.increment(inc);<a name="line.348"></a>
+<span class="sourceLineNo">349</span><a name="line.349"></a>
+<span class="sourceLineNo">350</span>    // Verify expected results<a name="line.350"></a>
+<span class="sourceLineNo">351</span>    Get get = new Get(ROW);<a name="line.351"></a>
+<span class="sourceLineNo">352</span>    Result r = ht.get(get);<a name="line.352"></a>
+<span class="sourceLineNo">353</span>    Cell [] kvs = r.rawCells();<a name="line.353"></a>
+<span class="sourceLineNo">354</span>    assertEquals(1, kvs.length);<a name="line.354"></a>
+<span class="sourceLineNo">355</span>    assertNotNull(kvs[0]);<a name="line.355"></a>
+<span class="sourceLineNo">356</span>    assertIncrementKey(kvs[0], ROW, FAMILY, col1, 0);<a name="line.356"></a>
+<span class="sourceLineNo">357</span><a name="line.357"></a>
+<span class="sourceLineNo">358</span>    // Now try multiple columns by different amounts<a name="line.358"></a>
+<span class="sourceLineNo">359</span>    inc = new Increment(ROW);<a name="line.359"></a>
+<span class="sourceLineNo">360</span>    inc.addColumn(FAMILY, col1, 1);<a name="line.360"></a>
+<span class="sourceLineNo">361</span>    inc.addColumn(FAMILY, col2, 0);<a name="line.361"></a>
+<span class="sourceLineNo">362</span>    inc.addColumn(FAMILY, col3, 2);<a name="line.362"></a>
 <span class="sourceLineNo">363</span>    ht.increment(inc);<a name="line.363"></a>
-<span class="sourceLineNo">364</span><a name="line.364"></a>
-<span class="sourceLineNo">365</span>    // Verify expected results<a name="line.365"></a>
-<span class="sourceLineNo">366</span>    Get get = new Get(ROW);<a name="line.366"></a>
-<span class="sourceLineNo">367</span>    Result r = ht.get(get);<a name="line.367"></a>
-<span class="sourceLineNo">368</span>    Cell [] kvs = r.rawCells();<a name="line.368"></a>
-<span class="sourceLineNo">369</span>    assertEquals(1, kvs.length);<a name="line.369"></a>
-<span class="sourceLineNo">370</span>    assertNotNull(kvs[0]);<a name="line.370"></a>
-<span class="sourceLineNo">371</span>    assertIncrementKey(kvs[0], ROW, FAMILY, col1, 0);<a name="line.371"></a>
-<span class="sourceLineNo">372</span><a name="line.372"></a>
-<span class="sourceLineNo">373</span>    // Now try multiple columns by different amounts<a name="line.373"></a>
-<span class="sourceLineNo">374</span>    inc = new Increment(ROW);<a name="line.374"></a>
-<span class="sourceLineNo">375</span>    inc.addColumn(FAMILY, col1, 1);<a name="line.375"></a>
-<span class="sourceLineNo">376</span>    inc.addColumn(FAMILY, col2, 0);<a name="line.376"></a>
-<span class="sourceLineNo">377</span>    inc.addColumn(FAMILY, col3, 2);<a name="line.377"></a>
-<span class="sourceLineNo">378</span>    ht.increment(inc);<a name="line.378"></a>
-<span class="sourceLineNo">379</span>    // Verify<a name="line.379"></a>
-<span class="sourceLineNo">380</span>    get = new Get(ROW);<a name="line.380"></a>
-<span class="sourceLineNo">381</span>    r = ht.get(get);<a name="line.381"></a>
-<span class="sourceLineNo">382</span>    kvs = r.rawCells();<a name="line.382"></a>
-<span class="sourceLineNo">383</span>    assertEquals(3, kvs.length);<a name="line.383"></a>
-<span class="sourceLineNo">384</span>    assertNotNull(kvs[0]);<a name="line.384"></a>
-<span class="sourceLineNo">385</span>    assertNotNull(kvs[1]);<a name="line.385"></a>
-<span class="sourceLineNo">386</span>    assertNotNull(kvs[2]);<a name="line.386"></a>
-<span class="sourceLineNo">387</span>    assertIncrementKey(kvs[0], ROW, FAMILY, col1, 1);<a name="line.387"></a>
-<span class="sourceLineNo">388</span>    assertIncrementKey(kvs[1], ROW, FAMILY, col2, 0);<a name="line.388"></a>
-<span class="sourceLineNo">389</span>    assertIncrementKey(kvs[2], ROW, FAMILY, col3, 2);<a name="line.389"></a>
-<span class="sourceLineNo">390</span>  }<a name="line.390"></a>
-<span class="sourceLineNo">391</span><a name="line.391"></a>
-<span class="sourceLineNo">392</span>  @Test<a name="line.392"></a>
-<span class="sourceLineNo">393</span>  public void testIncrement() throws Exception {<a name="line.393"></a>
-<span class="sourceLineNo">394</span>    LOG.info("Starting " + this.name.getMethodName());<a name="line.394"></a>
-<span class="sourceLineNo">395</span>    final TableName TABLENAME =<a name="line.395"></a>
-<span class="sourceLineNo">396</span>        TableName.valueOf(filterStringSoTableNameSafe(this.name.getMethodName()));<a name="line.396"></a>
-<span class="sourceLineNo">397</span>    Table ht = TEST_UTIL.createTable(TABLENAME, FAMILY);<a name="line.397"></a>
-<span class="sourceLineNo">398</span><a name="line.398"></a>
-<span class="sourceLineNo">399</span>    byte [][] ROWS = new byte [][] {<a name="line.399"></a>
-<span class="sourceLineNo">400</span>        Bytes.toBytes("a"), Bytes.toBytes("b"), Bytes.toBytes("c"),<a name="line.400"></a>
-<span class="sourceLineNo">401</span>        Bytes.toBytes("d"), Bytes.toBytes("e"), Bytes.toBytes("f"),<a name="line.401"></a>
-<span class="sourceLineNo">402</span>        Bytes.toBytes("g"), Bytes.toBytes("h"), Bytes.toBytes("i")<a name="line.402"></a>
-<span class="sourceLineNo">403</span>    };<a name="line.403"></a>
-<span class="sourceLineNo">404</span>    byte [][] QUALIFIERS = new byte [][] {<a name="line.404"></a>
-<span class="sourceLineNo">405</span>        Bytes.toBytes("a"), Bytes.toBytes("b"), Bytes.toBytes("c"),<a name="line.405"></a>
-<span class="sourceLineNo">406</span>        Bytes.toBytes("d"), Bytes.toBytes("e"), Bytes.toBytes("f"),<a name="line.406"></a>
-<span class="sourceLineNo">407</span>        Bytes.toBytes("g"), Bytes.toBytes("h"), Bytes.toBytes("i")<a name="line.407"></a>
-<span class="sourceLineNo">408</span>    };<a name="line.408"></a>
+<span class="sourceLineNo">364</span>    // Verify<a name="line.364"></a>
+<span class="sourceLineNo">365</span>    get = new Get(ROW);<a name="line.365"></a>
+<span class="sourceLineNo">366</span>    r = ht.get(get);<a name="line.366"></a>
+<span class="sourceLineNo">367</span>    kvs = r.rawCells();<a name="line.367"></a>
+<span class="sourceLineNo">368</span>    assertEquals(3, kvs.length);<a name="line.368"></a>
+<span class="sourceLineNo">369</span>    assertNotNull(kvs[0]);<a name="line.369"></a>
+<span class="sourceLineNo">370</span>    assertNotNull(kvs[1]);<a name="line.370"></a>
+<span class="sourceLineNo">371</span>    assertNotNull(kvs[2]);<a name="line.371"></a>
+<span class="sourceLineNo">372</span>    assertIncrementKey(kvs[0], ROW, FAMILY, col1, 1);<a name="line.372"></a>
+<span class="sourceLineNo">373</span>    assertIncrementKey(kvs[1], ROW, FAMILY, col2, 0);<a name="line.373"></a>
+<span class="sourceLineNo">374</span>    assertIncrementKey(kvs[2], ROW, FAMILY, col3, 2);<a name="line.374"></a>
+<span class="sourceLineNo">375</span>  }<a name="line.375"></a>
+<span class="sourceLineNo">376</span><a name="line.376"></a>
+<span class="sourceLineNo">377</span>  @Test<a name="line.377"></a>
+<span class="sourceLineNo">378</span>  public void testIncrement() throws Exception {<a name="line.378"></a>
+<span class="sourceLineNo">379</span>    LOG.info("Starting " + this.name.getMethodName());<a name="line.379"></a>
+<span class="sourceLineNo">380</span>    final TableName TABLENAME =<a name="line.380"></a>
+<span class="sourceLineNo">381</span>        TableName.valueOf(filterStringSoTableNameSafe(this.name.getMethodName()));<a name="line.381"></a>
+<span class="sourceLineNo">382</span>    Table ht = TEST_UTIL.createTable(TABLENAME, FAMILY);<a name="line.382"></a>
+<span class="sourceLineNo">383</span><a name="line.383"></a>
+<span class="sourceLineNo">384</span>    byte [][] ROWS = new byte [][] {<a name="line.384"></a>
+<span class="sourceLineNo">385</span>        Bytes.toBytes("a"), Bytes.toBytes("b"), Bytes.toBytes("c"),<a name="line.385"></a>
+<span class="sourceLineNo">386</span>        Bytes.toBytes("d"), Bytes.toBytes("e"), Bytes.toBytes("f"),<a name="line.386"></a>
+<span class="sourceLineNo">387</span>        Bytes.toBytes("g"), Bytes.toBytes("h"), Bytes.toBytes("i")<a name="line.387"></a>
+<span class="sourceLineNo">388</span>    };<a name="line.388"></a>
+<span class="sourceLineNo">389</span>    byte [][] QUALIFIERS = new byte [][] {<a name="line.389"></a>
+<span class="sourceLineNo">390</span>        Bytes.toBytes("a"), Bytes.toBytes("b"), Bytes.toBytes("c"),<a name="line.390"></a>
+<span class="sourceLineNo">391</span>        Bytes.toBytes("d"), Bytes.toBytes("e"), Bytes.toBytes("f"),<a name="line.391"></a>
+<span class="sourceLineNo">392</span>        Bytes.toBytes("g"), Bytes.toBytes("h"), Bytes.toBytes("i")<a name="line.392"></a>
+<span class="sourceLineNo">393</span>    };<a name="line.393"></a>
+<span class="sourceLineNo">394</span><a name="line.394"></a>
+<span class="sourceLineNo">395</span>    // Do some simple single-column increments<a name="line.395"></a>
+<span class="sourceLineNo">396</span><a name="line.396"></a>
+<span class="sourceLineNo">397</span>    // First with old API<a name="line.397"></a>
+<span class="sourceLineNo">398</span>    ht.incrementColumnValue(ROW, FAMILY, QUALIFIERS[0], 1);<a name="line.398"></a>
+<span class="sourceLineNo">399</span>    ht.incrementColumnValue(ROW, FAMILY, QUALIFIERS[1], 2);<a name="line.399"></a>
+<span class="sourceLineNo">400</span>    ht.incrementColumnValue(ROW, FAMILY, QUALIFIERS[2], 3);<a name="line.400"></a>
+<span class="sourceLineNo">401</span>    ht.incrementColumnValue(ROW, FAMILY, QUALIFIERS[3], 4);<a name="line.401"></a>
+<span class="sourceLineNo">402</span><a name="line.402"></a>
+<span class="sourceLineNo">403</span>    // Now increment things incremented with old and do some new<a name="line.403"></a>
+<span class="sourceLineNo">404</span>    Increment inc = new Increment(ROW);<a name="line.404"></a>
+<span class="sourceLineNo">405</span>    inc.addColumn(FAMILY, QUALIFIERS[1], 1);<a name="line.405"></a>
+<span class="sourceLineNo">406</span>    inc.addColumn(FAMILY, QUALIFIERS[3], 1);<a name="line.406"></a>
+<span class="sourceLineNo">407</span>    inc.addColumn(FAMILY, QUALIFIERS[4], 1);<a name="line.407"></a>
+<span class="sourceLineNo">408</span>    ht.increment(inc);<a name="line.408"></a>
 <span class="sourceLineNo">409</span><a name="line.409"></a>
-<span class="sourceLineNo">410</span>    // Do some simple single-column increments<a name="line.410"></a>
-<span class="sourceLineNo">411</span><a name="line.411"></a>
-<span class="sourceLineNo">412</span>    // First with old API<a name="line.412"></a>
-<span class="sourceLineNo">413</span>    ht.incrementColumnValue(ROW, FAMILY, QUALIFIERS[0], 1);<a name="line.413"></a>
-<span class="sourceLineNo">414</span>    ht.incrementColumnValue(ROW, FAMILY, QUALIFIERS[1], 2);<a name="line.414"></a>
-<span class="sourceLineNo">415</span>    ht.incrementColumnValue(ROW, FAMILY, QUALIFIERS[2], 3);<a name="line.415"></a>
-<span class="sourceLineNo">416</span>    ht.incrementColumnValue(ROW, FAMILY, QUALIFIERS[3], 4);<a name="line.416"></a>
-<span class="sourceLineNo">417</span><a name="line.417"></a>
-<span class="sourceLineNo">418</span>    // Now increment things incremented with old and do some new<a name="line.418"></a>
-<span class="sourceLineNo">419</span>    Increment inc = new Increment(ROW);<a name="line.419"></a>
-<span class="sourceLineNo">420</span>    inc.addColumn(FAMILY, QUALIFIERS[1], 1);<a name="line.420"></a>
-<span class="sourceLineNo">421</span>    inc.addColumn(FAMILY, QUALIFIERS[3], 1);<a name="line.421"></a>
-<span class="sourceLineNo">422</span>    inc.addColumn(FAMILY, QUALIFIERS[4], 1);<a name="line.422"></a>
-<span class="sourceLineNo">423</span>    ht.increment(inc);<a name="line.423"></a>
-<span class="sourceLineNo">424</span><a name="line.424"></a>
-<span class="sourceLineNo">425</span>    // Verify expected results<a name="line.425"></a>
-<span class="sourceLineNo">426</span>    Get get = new Get(ROW);<a name="line.426"></a>
-<span class="sourceLineNo">427</span>    Result r = ht.get(get);<a name="line.427"></a>
-<span class="sourceLineNo">428</span>    Cell [] kvs = r.rawCells();<a name="line.428"></a>
-<span class="sourceLineNo">429</span>    assertEquals(5, kvs.length);<a name="line.429"></a>
-<span class="sourceLineNo">430</span>    assertIncrementKey(kvs[0], ROW, FAMILY, QUALIFIERS[0], 1);<a name="line.430"></a>
-<span class="sourceLineNo">431</span>    assertIncrementKey(kvs[1], ROW, FAMILY, QUALIFIERS[1], 3);<a name="line.431"></a>
-<span class="sourceLineNo">432</span>    assertIncrementKey(kvs[2], ROW, FAMILY, QUALIFIERS[2], 3);<a name="line.432"></a>
-<span class="sourceLineNo">433</span>    assertIncrementKey(kvs[3], ROW, FAMILY, QUALIFIERS[3], 5);<a name="line.433"></a>
-<span class="sourceLineNo">434</span>    assertIncrementKey(kvs[4], ROW, FAMILY, QUALIFIERS[4], 1);<a name="line.434"></a>
+<span class="sourceLineNo">410</span>    // Verify expected results<a name="line.410"></a>
+<span class="sourceLineNo">411</span>    Get get = new Get(ROW);<a name="line.411"></a>
+<span class="sourceLineNo">412</span>    Result r = ht.get(get);<a name="line.412"></a>
+<span class="sourceLineNo">413</span>    Cell [] kvs = r.rawCells();<a name="line.413"></a>
+<span class="sourceLineNo">414</span>    assertEquals(5, kvs.length);<a name="line.414"></a>
+<span class="sourceLineNo">415</span>    assertIncrementKey(kvs[0], ROW, FAMILY, QUALIFIERS[0], 1);<a name="line.415"></a>
+<span class="sourceLineNo">416</span>    assertIncrementKey(kvs[1], ROW, FAMILY, QUALIFIERS[1], 3);<a name="line.416"></a>
+<span class="sourceLineNo">417</span>    assertIncrementKey(kvs[2], ROW, FAMILY, QUALIFIERS[2], 3);<a name="line.417"></a>
+<span class="sourceLineNo">418</span>    assertIncrementKey(kvs[3], ROW, FAMILY, QUALIFIERS[3], 5);<a name="line.418"></a>
+<span class="sourceLineNo">419</span>    assertIncrementKey(kvs[4], ROW, FAMILY, QUALIFIERS[4], 1);<a name="line.419"></a>
+<span class="sourceLineNo">420</span><a name="line.420"></a>
+<span class="sourceLineNo">421</span>    // Now try multiple columns by different amounts<a name="line.421"></a>
+<span class="sourceLineNo">422</span>    inc = new Increment(ROWS[0]);<a name="line.422"></a>
+<span class="sourceLineNo">423</span>    for (int i=0;i&lt;QUALIFIERS.length;i++) {<a name="line.423"></a>
+<span class="sourceLineNo">424</span>      inc.addColumn(FAMILY, QUALIFIERS[i], i+1);<a name="line.424"></a>
+<span class="sourceLineNo">425</span>    }<a name="line.425"></a>
+<span class="sourceLineNo">426</span>    ht.increment(inc);<a name="line.426"></a>
+<span class="sourceLineNo">427</span>    // Verify<a name="line.427"></a>
+<span class="sourceLineNo">428</span>    get = new Get(ROWS[0]);<a name="line.428"></a>
+<span class="sourceLineNo">429</span>    r = ht.get(get);<a name="line.429"></a>
+<span class="sourceLineNo">430</span>    kvs = r.rawCells();<a name="line.430"></a>
+<span class="sourceLineNo">431</span>    assertEquals(QUALIFIERS.length, kvs.length);<a name="line.431"></a>
+<span class="sourceLineNo">432</span>    for (int i=0;i&lt;QUALIFIERS.length;i++) {<a name="line.432"></a>
+<span class="sourceLineNo">433</span>      assertIncrementKey(kvs[i], ROWS[0], FAMILY, QUALIFIERS[i], i+1);<a name="line.433"></a>
+<span class="sourceLineNo">434</span>    }<a name="line.434"></a>
 <span class="sourceLineNo">435</span><a name="line.435"></a>
-<span class="sourceLineNo">436</span>    // Now try multiple columns by different amounts<a name="line.436"></a>
+<span class="sourceLineNo">436</span>    // Re-increment them<a name="line.436"></a>
 <span class="sourceLineNo">437</span>    inc = new Increment(ROWS[0]);<a name="line.437"></a>
 <span class="sourceLineNo">438</span>    for (int i=0;i&lt;QUALIFIERS.length;i++) {<a name="line.438"></a>
 <span class="sourceLineNo">439</span>      inc.addColumn(FAMILY, QUALIFIERS[i], i+1);<a name="line.439"></a>
 <span class="sourceLineNo">440</span>    }<a name="line.440"></a>
 <span class="sourceLineNo">441</span>    ht.increment(inc);<a name="line.441"></a>
 <span class="sourceLineNo">442</span>    // Verify<a name="line.442"></a>
-<span class="sourceLineNo">443</span>    get = new Get(ROWS[0]);<a name="line.443"></a>
-<span class="sourceLineNo">444</span>    r = ht.get(get);<a name="line.444"></a>
-<span class="sourceLineNo">445</span>    kvs = r.rawCells();<a name="line.445"></a>
-<span class="sourceLineNo">446</span>    assertEquals(QUALIFIERS.length, kvs.length);<a name="line.446"></a>
-<span class="sourceLineNo">447</span>    for (int i=0;i&lt;QUALIFIERS.length;i++) {<a name="line.447"></a>
-<span class="sourceLineNo">448</span>      assertIncrementKey(kvs[i], ROWS[0], FAMILY, QUALIFIERS[i], i+1);<a name="line.448"></a>
-<span class="sourceLineNo">449</span>    }<a name="line.449"></a>
-<span class="sourceLineNo">450</span><a name="line.450"></a>
-<span class="sourceLineNo">451</span>    // Re-increment them<a name="line.451"></a>
+<span class="sourceLineNo">443</span>    r = ht.get(get);<a name="line.443"></a>
+<span class="sourceLineNo">444</span>    kvs = r.rawCells();<a name="line.444"></a>
+<span class="sourceLineNo">445</span>    assertEquals(QUALIFIERS.length, kvs.length);<a name="line.445"></a>
+<span class="sourceLineNo">446</span>    for (int i=0;i&lt;QUALIFIERS.length;i++) {<a name="line.446"></a>
+<span class="sourceLineNo">447</span>      assertIncrementKey(kvs[i], ROWS[0], FAMILY, QUALIFIERS[i], 2*(i+1));<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>    // Verify that an Increment of an amount of zero, returns current count; i.e. same as for above<a name="line.450"></a>
+<span class="sourceLineNo">451</span>    // test, that is: 2 * (i + 1).<a name="line.451"></a>
 <span class="sourceLineNo">452</span>    inc = new Increment(ROWS[0]);<a name="line.452"></a>
-<span class="sourceLineNo">453</span>    for (int i=0;i&lt;QUALIFIERS.length;i++) {<a name="line.453"></a>
-<span class="sourceLineNo">454</span>      inc.addColumn(FAMILY, QUALIFIERS[i], i+1);<a name="line.454"></a>
+<span class="sourceLineNo">453</span>    for (int i = 0; i &lt; QUALIFIERS.length; i++) {<a name="line.453"></a>
+<span class="sourceLineNo">454</span>      inc.addColumn(FAMILY, QUALIFIERS[i], 0);<a name="line.454"></a>
 <span class="sourceLineNo">455</span>    }<a name="line.455"></a>
 <span class="sourceLineNo">456</span>    ht.increment(inc);<a name="line.456"></a>
-<span class="sourceLineNo">457</span>    // Verify<a name="line.457"></a>
-<span class="sourceLineNo">458</span>    r = ht.get(get);<a name="line.458"></a>
-<span class="sourceLineNo">459</span>    kvs = r.rawCells();<a name="line.459"></a>
-<span class="sourceLineNo">460</span>    assertEquals(QUALIFIERS.length, kvs.length);<a name="line.460"></a>
-<span class="sourceLineNo">461</span>    for (int i=0;i&lt;QUALIFIERS.length;i++) {<a name="line.461"></a>
-<span class="sourceLineNo">462</span>      assertIncrementKey(kvs[i], ROWS[0], FAMILY, QUALIFIERS[i], 2*(i+1));<a name="line.462"></a>
-<span class="sourceLineNo">463</span>    }<a name="line.463"></a>
+<span class="sourceLineNo">457</span>    r = ht.get(get);<a name="line.457"></a>
+<span class="sourceLineNo">458</span>    kvs = r.rawCells();<a name="line.458"></a>
+<span class="sourceLineNo">459</span>    assertEquals(QUALIFIERS.length, kvs.length);<a name="line.459"></a>
+<span class="sourceLineNo">460</span>    for (int i = 0; i &lt; QUALIFIERS.length; i++) {<a name="line.460"></a>
+<span class="sourceLineNo">461</span>      assertIncrementKey(kvs[i], ROWS[0], FAMILY, QUALIFIERS[i], 2*(i+1));<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><a name="line.464"></a>
-<span class="sourceLineNo">465</span>    // Verify that an Increment of an amount of zero, returns current count; i.e. same as for above<a name="line.465"></a>
-<span class="sourceLineNo">466</span>    // test, that is: 2 * (i + 1).<a name="line.466"></a>
-<span class="sourceLineNo">467</span>    inc = new Increment(ROWS[0]);<a name="line.467"></a>
-<span class="sourceLineNo">468</span>    for (int i = 0; i &lt; QUALIFIERS.length; i++) {<a name="line.468"></a>
-<span class="sourceLineNo">469</span>      inc.addColumn(FAMILY, QUALIFIERS[i], 0);<a name="line.469"></a>
-<span class="sourceLineNo">470</span>    }<a name="line.470"></a>
-<span class="sourceLineNo">471</span>    ht.increment(inc);<a name="line.471"></a>
-<span class="sourceLineNo">472</span>    r = ht.get(get);<a name="line.472"></a>
-<span class="sourceLineNo">473</span>    kvs = r.rawCells();<a name="line.473"></a>
-<span class="sourceLineNo">474</span>    assertEquals(QUALIFIERS.length, kvs.length);<a name="line.474"></a>
-<span class="sourceLineNo">475</span>    for (int i = 0; i &lt; QUALIFIERS.length; i++) {<a name="line.475"></a>
-<span class="sourceLineNo">476</span>      assertIncrementKey(kvs[i], ROWS[0], FAMILY, QUALIFIERS[i], 2*(i+1));<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><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>   * Call over to the adjacent class's method of same name.<a name="line.482"></a>
-<span class="sourceLineNo">483</span>   */<a name="line.483"></a>
-<span class="sourceLineNo">484</span>  static void assertIncrementKey(Cell key, byte [] row, byte [] family,<a name="line.484"></a>
-<span class="sourceLineNo">485</span>      byte [] qualifier, long value) throws Exception {<a name="line.485"></a>
-<span class="sourceLineNo">486</span>    TestFromClientSide.assertIncrementKey(key, row, family, qualifier, value);<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>  public static String filterStringSoTableNameSafe(final String str) {<a name="line.489"></a>
-<span class="sourceLineNo">490</span>    return str.replaceAll("\\[fast\\=(.*)\\]", ".FAST.is.$1");<a name="line.490"></a>
-<span class="sourceLineNo">491</span>  }<a name="line.491"></a>
-<span class="sourceLineNo">492</span>}<a name="line.492"></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>   * Call over to the adjacent class's method of same name.<a name="line.467"></a>
+<span class="sourceLineNo">468</span>   */<a name="line.468"></a>
+<span class="sourceLineNo">469</span>  static void assertIncrementKey(Cell key, byte [] row, byte [] family,<a name="line.469"></a>
+<span class="sourceLineNo">470</span>      byte [] qualifier, long value) throws Exception {<a name="line.470"></a>
+<span class="sourceLineNo">471</span>    TestFromClientSide.assertIncrementKey(key, row, family, qualifier, value);<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>  public static String filterStringSoTableNameSafe(final String str) {<a name="line.474"></a>
+<span class="sourceLineNo">475</span>    return str.replaceAll("\\[fast\\=(.*)\\]", ".FAST.is.$1");<a name="line.475"></a>
+<span class="sourceLineNo">476</span>  }<a name="line.476"></a>
+<span class="sourceLineNo">477</span>}<a name="line.477"></a>
 
 
 


Mime
View raw message