hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject [23/52] [partial] hbase-site git commit: Published site at 1cfd22bf43c9b64afae35d9bf16f764d0da80cab.
Date Tue, 21 Mar 2017 16:36:19 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/22cff34f/apidocs/src-html/org/apache/hadoop/hbase/client/HTableMultiplexer.HTableMultiplexerStatus.html
----------------------------------------------------------------------
diff --git a/apidocs/src-html/org/apache/hadoop/hbase/client/HTableMultiplexer.HTableMultiplexerStatus.html
b/apidocs/src-html/org/apache/hadoop/hbase/client/HTableMultiplexer.HTableMultiplexerStatus.html
index 0859dfa..88da4c0 100644
--- a/apidocs/src-html/org/apache/hadoop/hbase/client/HTableMultiplexer.HTableMultiplexerStatus.html
+++ b/apidocs/src-html/org/apache/hadoop/hbase/client/HTableMultiplexer.HTableMultiplexerStatus.html
@@ -177,7 +177,7 @@
 <span class="sourceLineNo">169</span><a name="line.169"></a>
 <span class="sourceLineNo">170</span>        // Create the failed puts list if
necessary<a name="line.170"></a>
 <span class="sourceLineNo">171</span>        if (failedPuts == null) {<a name="line.171"></a>
-<span class="sourceLineNo">172</span>          failedPuts = new ArrayList&lt;Put&gt;();<a
name="line.172"></a>
+<span class="sourceLineNo">172</span>          failedPuts = new ArrayList&lt;&gt;();<a
name="line.172"></a>
 <span class="sourceLineNo">173</span>        }<a name="line.173"></a>
 <span class="sourceLineNo">174</span>        // Add the put to the failed puts
list<a name="line.174"></a>
 <span class="sourceLineNo">175</span>        failedPuts.add(put);<a name="line.175"></a>
@@ -296,10 +296,10 @@
 <span class="sourceLineNo">288</span>      this.totalFailedPutCounter = 0;<a
name="line.288"></a>
 <span class="sourceLineNo">289</span>      this.maxLatency = 0;<a name="line.289"></a>
 <span class="sourceLineNo">290</span>      this.overallAverageLatency = 0;<a
name="line.290"></a>
-<span class="sourceLineNo">291</span>      this.serverToBufferedCounterMap =
new HashMap&lt;String, Long&gt;();<a name="line.291"></a>
-<span class="sourceLineNo">292</span>      this.serverToFailedCounterMap = new
HashMap&lt;String, Long&gt;();<a name="line.292"></a>
-<span class="sourceLineNo">293</span>      this.serverToAverageLatencyMap = new
HashMap&lt;String, Long&gt;();<a name="line.293"></a>
-<span class="sourceLineNo">294</span>      this.serverToMaxLatencyMap = new HashMap&lt;String,
Long&gt;();<a name="line.294"></a>
+<span class="sourceLineNo">291</span>      this.serverToBufferedCounterMap =
new HashMap&lt;&gt;();<a name="line.291"></a>
+<span class="sourceLineNo">292</span>      this.serverToFailedCounterMap = new
HashMap&lt;&gt;();<a name="line.292"></a>
+<span class="sourceLineNo">293</span>      this.serverToAverageLatencyMap = new
HashMap&lt;&gt;();<a name="line.293"></a>
+<span class="sourceLineNo">294</span>      this.serverToMaxLatencyMap = new HashMap&lt;&gt;();<a
name="line.294"></a>
 <span class="sourceLineNo">295</span>      this.initialize(serverToFlushWorkerMap);<a
name="line.295"></a>
 <span class="sourceLineNo">296</span>    }<a name="line.296"></a>
 <span class="sourceLineNo">297</span><a name="line.297"></a>
@@ -420,7 +420,7 @@
 <span class="sourceLineNo">412</span>    }<a name="line.412"></a>
 <span class="sourceLineNo">413</span><a name="line.413"></a>
 <span class="sourceLineNo">414</span>    public synchronized SimpleEntry&lt;Long,
Integer&gt; getComponents() {<a name="line.414"></a>
-<span class="sourceLineNo">415</span>      return new SimpleEntry&lt;Long,
Integer&gt;(sum, count);<a name="line.415"></a>
+<span class="sourceLineNo">415</span>      return new SimpleEntry&lt;&gt;(sum,
count);<a name="line.415"></a>
 <span class="sourceLineNo">416</span>    }<a name="line.416"></a>
 <span class="sourceLineNo">417</span><a name="line.417"></a>
 <span class="sourceLineNo">418</span>    public synchronized void reset() {<a
name="line.418"></a>
@@ -622,7 +622,7 @@
 <span class="sourceLineNo">614</span>              failedCount--;<a name="line.614"></a>
 <span class="sourceLineNo">615</span>            } else {<a name="line.615"></a>
 <span class="sourceLineNo">616</span>              if (failed == null) {<a
name="line.616"></a>
-<span class="sourceLineNo">617</span>                failed = new ArrayList&lt;PutStatus&gt;();<a
name="line.617"></a>
+<span class="sourceLineNo">617</span>                failed = new ArrayList&lt;&gt;();<a
name="line.617"></a>
 <span class="sourceLineNo">618</span>              }<a name="line.618"></a>
 <span class="sourceLineNo">619</span>              failed.add(processingList.get(i));<a
name="line.619"></a>
 <span class="sourceLineNo">620</span>            }<a name="line.620"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/22cff34f/apidocs/src-html/org/apache/hadoop/hbase/client/HTableMultiplexer.html
----------------------------------------------------------------------
diff --git a/apidocs/src-html/org/apache/hadoop/hbase/client/HTableMultiplexer.html b/apidocs/src-html/org/apache/hadoop/hbase/client/HTableMultiplexer.html
index 0859dfa..88da4c0 100644
--- a/apidocs/src-html/org/apache/hadoop/hbase/client/HTableMultiplexer.html
+++ b/apidocs/src-html/org/apache/hadoop/hbase/client/HTableMultiplexer.html
@@ -177,7 +177,7 @@
 <span class="sourceLineNo">169</span><a name="line.169"></a>
 <span class="sourceLineNo">170</span>        // Create the failed puts list if
necessary<a name="line.170"></a>
 <span class="sourceLineNo">171</span>        if (failedPuts == null) {<a name="line.171"></a>
-<span class="sourceLineNo">172</span>          failedPuts = new ArrayList&lt;Put&gt;();<a
name="line.172"></a>
+<span class="sourceLineNo">172</span>          failedPuts = new ArrayList&lt;&gt;();<a
name="line.172"></a>
 <span class="sourceLineNo">173</span>        }<a name="line.173"></a>
 <span class="sourceLineNo">174</span>        // Add the put to the failed puts
list<a name="line.174"></a>
 <span class="sourceLineNo">175</span>        failedPuts.add(put);<a name="line.175"></a>
@@ -296,10 +296,10 @@
 <span class="sourceLineNo">288</span>      this.totalFailedPutCounter = 0;<a
name="line.288"></a>
 <span class="sourceLineNo">289</span>      this.maxLatency = 0;<a name="line.289"></a>
 <span class="sourceLineNo">290</span>      this.overallAverageLatency = 0;<a
name="line.290"></a>
-<span class="sourceLineNo">291</span>      this.serverToBufferedCounterMap =
new HashMap&lt;String, Long&gt;();<a name="line.291"></a>
-<span class="sourceLineNo">292</span>      this.serverToFailedCounterMap = new
HashMap&lt;String, Long&gt;();<a name="line.292"></a>
-<span class="sourceLineNo">293</span>      this.serverToAverageLatencyMap = new
HashMap&lt;String, Long&gt;();<a name="line.293"></a>
-<span class="sourceLineNo">294</span>      this.serverToMaxLatencyMap = new HashMap&lt;String,
Long&gt;();<a name="line.294"></a>
+<span class="sourceLineNo">291</span>      this.serverToBufferedCounterMap =
new HashMap&lt;&gt;();<a name="line.291"></a>
+<span class="sourceLineNo">292</span>      this.serverToFailedCounterMap = new
HashMap&lt;&gt;();<a name="line.292"></a>
+<span class="sourceLineNo">293</span>      this.serverToAverageLatencyMap = new
HashMap&lt;&gt;();<a name="line.293"></a>
+<span class="sourceLineNo">294</span>      this.serverToMaxLatencyMap = new HashMap&lt;&gt;();<a
name="line.294"></a>
 <span class="sourceLineNo">295</span>      this.initialize(serverToFlushWorkerMap);<a
name="line.295"></a>
 <span class="sourceLineNo">296</span>    }<a name="line.296"></a>
 <span class="sourceLineNo">297</span><a name="line.297"></a>
@@ -420,7 +420,7 @@
 <span class="sourceLineNo">412</span>    }<a name="line.412"></a>
 <span class="sourceLineNo">413</span><a name="line.413"></a>
 <span class="sourceLineNo">414</span>    public synchronized SimpleEntry&lt;Long,
Integer&gt; getComponents() {<a name="line.414"></a>
-<span class="sourceLineNo">415</span>      return new SimpleEntry&lt;Long,
Integer&gt;(sum, count);<a name="line.415"></a>
+<span class="sourceLineNo">415</span>      return new SimpleEntry&lt;&gt;(sum,
count);<a name="line.415"></a>
 <span class="sourceLineNo">416</span>    }<a name="line.416"></a>
 <span class="sourceLineNo">417</span><a name="line.417"></a>
 <span class="sourceLineNo">418</span>    public synchronized void reset() {<a
name="line.418"></a>
@@ -622,7 +622,7 @@
 <span class="sourceLineNo">614</span>              failedCount--;<a name="line.614"></a>
 <span class="sourceLineNo">615</span>            } else {<a name="line.615"></a>
 <span class="sourceLineNo">616</span>              if (failed == null) {<a
name="line.616"></a>
-<span class="sourceLineNo">617</span>                failed = new ArrayList&lt;PutStatus&gt;();<a
name="line.617"></a>
+<span class="sourceLineNo">617</span>                failed = new ArrayList&lt;&gt;();<a
name="line.617"></a>
 <span class="sourceLineNo">618</span>              }<a name="line.618"></a>
 <span class="sourceLineNo">619</span>              failed.add(processingList.get(i));<a
name="line.619"></a>
 <span class="sourceLineNo">620</span>            }<a name="line.620"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/22cff34f/apidocs/src-html/org/apache/hadoop/hbase/client/Increment.html
----------------------------------------------------------------------
diff --git a/apidocs/src-html/org/apache/hadoop/hbase/client/Increment.html b/apidocs/src-html/org/apache/hadoop/hbase/client/Increment.html
index 89f978d..753dd06 100644
--- a/apidocs/src-html/org/apache/hadoop/hbase/client/Increment.html
+++ b/apidocs/src-html/org/apache/hadoop/hbase/client/Increment.html
@@ -212,140 +212,139 @@
 <span class="sourceLineNo">204</span>   */<a name="line.204"></a>
 <span class="sourceLineNo">205</span>  public Map&lt;byte[], NavigableMap&lt;byte
[], Long&gt;&gt; getFamilyMapOfLongs() {<a name="line.205"></a>
 <span class="sourceLineNo">206</span>    NavigableMap&lt;byte[], List&lt;Cell&gt;&gt;
map = super.getFamilyCellMap();<a name="line.206"></a>
-<span class="sourceLineNo">207</span>    Map&lt;byte [], NavigableMap&lt;byte[],
Long&gt;&gt; results =<a name="line.207"></a>
-<span class="sourceLineNo">208</span>      new TreeMap&lt;byte[], NavigableMap&lt;byte
[], Long&gt;&gt;(Bytes.BYTES_COMPARATOR);<a name="line.208"></a>
-<span class="sourceLineNo">209</span>    for (Map.Entry&lt;byte [], List&lt;Cell&gt;&gt;
entry: map.entrySet()) {<a name="line.209"></a>
-<span class="sourceLineNo">210</span>      NavigableMap&lt;byte [], Long&gt;
longs = new TreeMap&lt;byte [], Long&gt;(Bytes.BYTES_COMPARATOR);<a name="line.210"></a>
-<span class="sourceLineNo">211</span>      for (Cell cell: entry.getValue())
{<a name="line.211"></a>
-<span class="sourceLineNo">212</span>        longs.put(CellUtil.cloneQualifier(cell),<a
name="line.212"></a>
-<span class="sourceLineNo">213</span>            Bytes.toLong(cell.getValueArray(),
cell.getValueOffset(), cell.getValueLength()));<a name="line.213"></a>
-<span class="sourceLineNo">214</span>      }<a name="line.214"></a>
-<span class="sourceLineNo">215</span>      results.put(entry.getKey(), longs);<a
name="line.215"></a>
-<span class="sourceLineNo">216</span>    }<a name="line.216"></a>
-<span class="sourceLineNo">217</span>    return results;<a name="line.217"></a>
-<span class="sourceLineNo">218</span>  }<a name="line.218"></a>
-<span class="sourceLineNo">219</span><a name="line.219"></a>
-<span class="sourceLineNo">220</span>  /**<a name="line.220"></a>
-<span class="sourceLineNo">221</span>   * @return String<a name="line.221"></a>
-<span class="sourceLineNo">222</span>   */<a name="line.222"></a>
-<span class="sourceLineNo">223</span>  @Override<a name="line.223"></a>
-<span class="sourceLineNo">224</span>  public String toString() {<a name="line.224"></a>
-<span class="sourceLineNo">225</span>    StringBuilder sb = new StringBuilder();<a
name="line.225"></a>
-<span class="sourceLineNo">226</span>    sb.append("row=");<a name="line.226"></a>
-<span class="sourceLineNo">227</span>    sb.append(Bytes.toStringBinary(this.row));<a
name="line.227"></a>
-<span class="sourceLineNo">228</span>    if(this.familyMap.isEmpty()) {<a
name="line.228"></a>
-<span class="sourceLineNo">229</span>      sb.append(", no columns set to be
incremented");<a name="line.229"></a>
-<span class="sourceLineNo">230</span>      return sb.toString();<a name="line.230"></a>
-<span class="sourceLineNo">231</span>    }<a name="line.231"></a>
-<span class="sourceLineNo">232</span>    sb.append(", families=");<a name="line.232"></a>
-<span class="sourceLineNo">233</span>    boolean moreThanOne = false;<a name="line.233"></a>
-<span class="sourceLineNo">234</span>    for(Map.Entry&lt;byte [], List&lt;Cell&gt;&gt;
entry: this.familyMap.entrySet()) {<a name="line.234"></a>
-<span class="sourceLineNo">235</span>      if(moreThanOne) {<a name="line.235"></a>
-<span class="sourceLineNo">236</span>        sb.append("), ");<a name="line.236"></a>
-<span class="sourceLineNo">237</span>      } else {<a name="line.237"></a>
-<span class="sourceLineNo">238</span>        moreThanOne = true;<a name="line.238"></a>
-<span class="sourceLineNo">239</span>        sb.append("{");<a name="line.239"></a>
-<span class="sourceLineNo">240</span>      }<a name="line.240"></a>
-<span class="sourceLineNo">241</span>      sb.append("(family=");<a name="line.241"></a>
-<span class="sourceLineNo">242</span>      sb.append(Bytes.toString(entry.getKey()));<a
name="line.242"></a>
-<span class="sourceLineNo">243</span>      sb.append(", columns=");<a name="line.243"></a>
-<span class="sourceLineNo">244</span>      if(entry.getValue() == null) {<a
name="line.244"></a>
-<span class="sourceLineNo">245</span>        sb.append("NONE");<a name="line.245"></a>
-<span class="sourceLineNo">246</span>      } else {<a name="line.246"></a>
-<span class="sourceLineNo">247</span>        sb.append("{");<a name="line.247"></a>
-<span class="sourceLineNo">248</span>        boolean moreThanOneB = false;<a
name="line.248"></a>
-<span class="sourceLineNo">249</span>        for(Cell cell : entry.getValue())
{<a name="line.249"></a>
-<span class="sourceLineNo">250</span>          if(moreThanOneB) {<a name="line.250"></a>
-<span class="sourceLineNo">251</span>            sb.append(", ");<a name="line.251"></a>
-<span class="sourceLineNo">252</span>          } else {<a name="line.252"></a>
-<span class="sourceLineNo">253</span>            moreThanOneB = true;<a name="line.253"></a>
-<span class="sourceLineNo">254</span>          }<a name="line.254"></a>
-<span class="sourceLineNo">255</span>          sb.append(CellUtil.getCellKeyAsString(cell)
+ "+=" +<a name="line.255"></a>
-<span class="sourceLineNo">256</span>              Bytes.toLong(cell.getValueArray(),
cell.getValueOffset(), cell.getValueLength()));<a name="line.256"></a>
-<span class="sourceLineNo">257</span>        }<a name="line.257"></a>
-<span class="sourceLineNo">258</span>        sb.append("}");<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>    sb.append("}");<a name="line.261"></a>
-<span class="sourceLineNo">262</span>    return sb.toString();<a name="line.262"></a>
-<span class="sourceLineNo">263</span>  }<a name="line.263"></a>
-<span class="sourceLineNo">264</span><a name="line.264"></a>
-<span class="sourceLineNo">265</span>  @Override<a name="line.265"></a>
-<span class="sourceLineNo">266</span>  public int compareTo(Row i) {<a name="line.266"></a>
-<span class="sourceLineNo">267</span>    // TODO: This is wrong.  Can't have
two the same just because on same row.<a name="line.267"></a>
-<span class="sourceLineNo">268</span>    return Bytes.compareTo(this.getRow(),
i.getRow());<a name="line.268"></a>
-<span class="sourceLineNo">269</span>  }<a name="line.269"></a>
-<span class="sourceLineNo">270</span><a name="line.270"></a>
-<span class="sourceLineNo">271</span>  @Override<a name="line.271"></a>
-<span class="sourceLineNo">272</span>  public int hashCode() {<a name="line.272"></a>
-<span class="sourceLineNo">273</span>    // TODO: This is wrong.  Can't have
two gets the same just because on same row.  But it<a name="line.273"></a>
-<span class="sourceLineNo">274</span>    // matches how equals works currently
and gets rid of the findbugs warning.<a name="line.274"></a>
-<span class="sourceLineNo">275</span>    return Bytes.hashCode(this.getRow());<a
name="line.275"></a>
-<span class="sourceLineNo">276</span>  }<a name="line.276"></a>
-<span class="sourceLineNo">277</span><a name="line.277"></a>
-<span class="sourceLineNo">278</span>  @Override<a name="line.278"></a>
-<span class="sourceLineNo">279</span>  public boolean equals(Object obj) {<a
name="line.279"></a>
-<span class="sourceLineNo">280</span>    // TODO: This is wrong.  Can't have
two the same just because on same row.<a name="line.280"></a>
-<span class="sourceLineNo">281</span>    if (this == obj) {<a name="line.281"></a>
-<span class="sourceLineNo">282</span>      return true;<a name="line.282"></a>
-<span class="sourceLineNo">283</span>    }<a name="line.283"></a>
-<span class="sourceLineNo">284</span>    if (obj == null || getClass() != obj.getClass())
{<a name="line.284"></a>
-<span class="sourceLineNo">285</span>      return false;<a name="line.285"></a>
-<span class="sourceLineNo">286</span>    }<a name="line.286"></a>
-<span class="sourceLineNo">287</span>    Row other = (Row) obj;<a name="line.287"></a>
-<span class="sourceLineNo">288</span>    return compareTo(other) == 0;<a name="line.288"></a>
-<span class="sourceLineNo">289</span>  }<a name="line.289"></a>
-<span class="sourceLineNo">290</span><a name="line.290"></a>
-<span class="sourceLineNo">291</span>  @Override<a name="line.291"></a>
-<span class="sourceLineNo">292</span>  protected long extraHeapSize(){<a name="line.292"></a>
-<span class="sourceLineNo">293</span>    return HEAP_OVERHEAD;<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>  @Override<a name="line.296"></a>
-<span class="sourceLineNo">297</span>  public Increment setAttribute(String name,
byte[] value) {<a name="line.297"></a>
-<span class="sourceLineNo">298</span>    return (Increment) super.setAttribute(name,
value);<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>  @Override<a name="line.301"></a>
-<span class="sourceLineNo">302</span>  public Increment setId(String id) {<a
name="line.302"></a>
-<span class="sourceLineNo">303</span>    return (Increment) super.setId(id);<a
name="line.303"></a>
-<span class="sourceLineNo">304</span>  }<a name="line.304"></a>
-<span class="sourceLineNo">305</span><a name="line.305"></a>
-<span class="sourceLineNo">306</span>  @Override<a name="line.306"></a>
-<span class="sourceLineNo">307</span>  public Increment setDurability(Durability
d) {<a name="line.307"></a>
-<span class="sourceLineNo">308</span>    return (Increment) super.setDurability(d);<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>  @Override<a name="line.311"></a>
-<span class="sourceLineNo">312</span>  public Increment setFamilyCellMap(NavigableMap&lt;byte[],
List&lt;Cell&gt;&gt; map) {<a name="line.312"></a>
-<span class="sourceLineNo">313</span>    return (Increment) super.setFamilyCellMap(map);<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>  @Override<a name="line.316"></a>
-<span class="sourceLineNo">317</span>  public Increment setClusterIds(List&lt;UUID&gt;
clusterIds) {<a name="line.317"></a>
-<span class="sourceLineNo">318</span>    return (Increment) super.setClusterIds(clusterIds);<a
name="line.318"></a>
-<span class="sourceLineNo">319</span>  }<a name="line.319"></a>
-<span class="sourceLineNo">320</span><a name="line.320"></a>
-<span class="sourceLineNo">321</span>  @Override<a name="line.321"></a>
-<span class="sourceLineNo">322</span>  public Increment setCellVisibility(CellVisibility
expression) {<a name="line.322"></a>
-<span class="sourceLineNo">323</span>    return (Increment) super.setCellVisibility(expression);<a
name="line.323"></a>
-<span class="sourceLineNo">324</span>  }<a name="line.324"></a>
-<span class="sourceLineNo">325</span><a name="line.325"></a>
-<span class="sourceLineNo">326</span>  @Override<a name="line.326"></a>
-<span class="sourceLineNo">327</span>  public Increment setACL(String user, Permission
perms) {<a name="line.327"></a>
-<span class="sourceLineNo">328</span>    return (Increment) super.setACL(user,
perms);<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>  @Override<a name="line.331"></a>
-<span class="sourceLineNo">332</span>  public Increment setACL(Map&lt;String,
Permission&gt; perms) {<a name="line.332"></a>
-<span class="sourceLineNo">333</span>    return (Increment) super.setACL(perms);<a
name="line.333"></a>
-<span class="sourceLineNo">334</span>  }<a name="line.334"></a>
-<span class="sourceLineNo">335</span><a name="line.335"></a>
-<span class="sourceLineNo">336</span>  @Override<a name="line.336"></a>
-<span class="sourceLineNo">337</span>  public Increment setTTL(long ttl) {<a
name="line.337"></a>
-<span class="sourceLineNo">338</span>    return (Increment) super.setTTL(ttl);<a
name="line.338"></a>
-<span class="sourceLineNo">339</span>  }<a name="line.339"></a>
-<span class="sourceLineNo">340</span>}<a name="line.340"></a>
+<span class="sourceLineNo">207</span>    Map&lt;byte [], NavigableMap&lt;byte[],
Long&gt;&gt; results = new TreeMap&lt;&gt;(Bytes.BYTES_COMPARATOR);<a name="line.207"></a>
+<span class="sourceLineNo">208</span>    for (Map.Entry&lt;byte [], List&lt;Cell&gt;&gt;
entry: map.entrySet()) {<a name="line.208"></a>
+<span class="sourceLineNo">209</span>      NavigableMap&lt;byte [], Long&gt;
longs = new TreeMap&lt;&gt;(Bytes.BYTES_COMPARATOR);<a name="line.209"></a>
+<span class="sourceLineNo">210</span>      for (Cell cell: entry.getValue())
{<a name="line.210"></a>
+<span class="sourceLineNo">211</span>        longs.put(CellUtil.cloneQualifier(cell),<a
name="line.211"></a>
+<span class="sourceLineNo">212</span>            Bytes.toLong(cell.getValueArray(),
cell.getValueOffset(), cell.getValueLength()));<a name="line.212"></a>
+<span class="sourceLineNo">213</span>      }<a name="line.213"></a>
+<span class="sourceLineNo">214</span>      results.put(entry.getKey(), longs);<a
name="line.214"></a>
+<span class="sourceLineNo">215</span>    }<a name="line.215"></a>
+<span class="sourceLineNo">216</span>    return results;<a name="line.216"></a>
+<span class="sourceLineNo">217</span>  }<a name="line.217"></a>
+<span class="sourceLineNo">218</span><a name="line.218"></a>
+<span class="sourceLineNo">219</span>  /**<a name="line.219"></a>
+<span class="sourceLineNo">220</span>   * @return String<a name="line.220"></a>
+<span class="sourceLineNo">221</span>   */<a name="line.221"></a>
+<span class="sourceLineNo">222</span>  @Override<a name="line.222"></a>
+<span class="sourceLineNo">223</span>  public String toString() {<a name="line.223"></a>
+<span class="sourceLineNo">224</span>    StringBuilder sb = new StringBuilder();<a
name="line.224"></a>
+<span class="sourceLineNo">225</span>    sb.append("row=");<a name="line.225"></a>
+<span class="sourceLineNo">226</span>    sb.append(Bytes.toStringBinary(this.row));<a
name="line.226"></a>
+<span class="sourceLineNo">227</span>    if(this.familyMap.isEmpty()) {<a
name="line.227"></a>
+<span class="sourceLineNo">228</span>      sb.append(", no columns set to be
incremented");<a name="line.228"></a>
+<span class="sourceLineNo">229</span>      return sb.toString();<a name="line.229"></a>
+<span class="sourceLineNo">230</span>    }<a name="line.230"></a>
+<span class="sourceLineNo">231</span>    sb.append(", families=");<a name="line.231"></a>
+<span class="sourceLineNo">232</span>    boolean moreThanOne = false;<a name="line.232"></a>
+<span class="sourceLineNo">233</span>    for(Map.Entry&lt;byte [], List&lt;Cell&gt;&gt;
entry: this.familyMap.entrySet()) {<a name="line.233"></a>
+<span class="sourceLineNo">234</span>      if(moreThanOne) {<a name="line.234"></a>
+<span class="sourceLineNo">235</span>        sb.append("), ");<a name="line.235"></a>
+<span class="sourceLineNo">236</span>      } else {<a name="line.236"></a>
+<span class="sourceLineNo">237</span>        moreThanOne = true;<a name="line.237"></a>
+<span class="sourceLineNo">238</span>        sb.append("{");<a name="line.238"></a>
+<span class="sourceLineNo">239</span>      }<a name="line.239"></a>
+<span class="sourceLineNo">240</span>      sb.append("(family=");<a name="line.240"></a>
+<span class="sourceLineNo">241</span>      sb.append(Bytes.toString(entry.getKey()));<a
name="line.241"></a>
+<span class="sourceLineNo">242</span>      sb.append(", columns=");<a name="line.242"></a>
+<span class="sourceLineNo">243</span>      if(entry.getValue() == null) {<a
name="line.243"></a>
+<span class="sourceLineNo">244</span>        sb.append("NONE");<a name="line.244"></a>
+<span class="sourceLineNo">245</span>      } else {<a name="line.245"></a>
+<span class="sourceLineNo">246</span>        sb.append("{");<a name="line.246"></a>
+<span class="sourceLineNo">247</span>        boolean moreThanOneB = false;<a
name="line.247"></a>
+<span class="sourceLineNo">248</span>        for(Cell cell : entry.getValue())
{<a name="line.248"></a>
+<span class="sourceLineNo">249</span>          if(moreThanOneB) {<a name="line.249"></a>
+<span class="sourceLineNo">250</span>            sb.append(", ");<a name="line.250"></a>
+<span class="sourceLineNo">251</span>          } else {<a name="line.251"></a>
+<span class="sourceLineNo">252</span>            moreThanOneB = true;<a name="line.252"></a>
+<span class="sourceLineNo">253</span>          }<a name="line.253"></a>
+<span class="sourceLineNo">254</span>          sb.append(CellUtil.getCellKeyAsString(cell)
+ "+=" +<a name="line.254"></a>
+<span class="sourceLineNo">255</span>              Bytes.toLong(cell.getValueArray(),
cell.getValueOffset(), cell.getValueLength()));<a name="line.255"></a>
+<span class="sourceLineNo">256</span>        }<a name="line.256"></a>
+<span class="sourceLineNo">257</span>        sb.append("}");<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>    sb.append("}");<a name="line.260"></a>
+<span class="sourceLineNo">261</span>    return sb.toString();<a name="line.261"></a>
+<span class="sourceLineNo">262</span>  }<a name="line.262"></a>
+<span class="sourceLineNo">263</span><a name="line.263"></a>
+<span class="sourceLineNo">264</span>  @Override<a name="line.264"></a>
+<span class="sourceLineNo">265</span>  public int compareTo(Row i) {<a name="line.265"></a>
+<span class="sourceLineNo">266</span>    // TODO: This is wrong.  Can't have
two the same just because on same row.<a name="line.266"></a>
+<span class="sourceLineNo">267</span>    return Bytes.compareTo(this.getRow(),
i.getRow());<a name="line.267"></a>
+<span class="sourceLineNo">268</span>  }<a name="line.268"></a>
+<span class="sourceLineNo">269</span><a name="line.269"></a>
+<span class="sourceLineNo">270</span>  @Override<a name="line.270"></a>
+<span class="sourceLineNo">271</span>  public int hashCode() {<a name="line.271"></a>
+<span class="sourceLineNo">272</span>    // TODO: This is wrong.  Can't have
two gets the same just because on same row.  But it<a name="line.272"></a>
+<span class="sourceLineNo">273</span>    // matches how equals works currently
and gets rid of the findbugs warning.<a name="line.273"></a>
+<span class="sourceLineNo">274</span>    return Bytes.hashCode(this.getRow());<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>  @Override<a name="line.277"></a>
+<span class="sourceLineNo">278</span>  public boolean equals(Object obj) {<a
name="line.278"></a>
+<span class="sourceLineNo">279</span>    // TODO: This is wrong.  Can't have
two the same just because on same row.<a name="line.279"></a>
+<span class="sourceLineNo">280</span>    if (this == obj) {<a name="line.280"></a>
+<span class="sourceLineNo">281</span>      return true;<a name="line.281"></a>
+<span class="sourceLineNo">282</span>    }<a name="line.282"></a>
+<span class="sourceLineNo">283</span>    if (obj == null || getClass() != obj.getClass())
{<a name="line.283"></a>
+<span class="sourceLineNo">284</span>      return false;<a name="line.284"></a>
+<span class="sourceLineNo">285</span>    }<a name="line.285"></a>
+<span class="sourceLineNo">286</span>    Row other = (Row) obj;<a name="line.286"></a>
+<span class="sourceLineNo">287</span>    return compareTo(other) == 0;<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>  @Override<a name="line.290"></a>
+<span class="sourceLineNo">291</span>  protected long extraHeapSize(){<a name="line.291"></a>
+<span class="sourceLineNo">292</span>    return HEAP_OVERHEAD;<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>  @Override<a name="line.295"></a>
+<span class="sourceLineNo">296</span>  public Increment setAttribute(String name,
byte[] value) {<a name="line.296"></a>
+<span class="sourceLineNo">297</span>    return (Increment) super.setAttribute(name,
value);<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>  @Override<a name="line.300"></a>
+<span class="sourceLineNo">301</span>  public Increment setId(String id) {<a
name="line.301"></a>
+<span class="sourceLineNo">302</span>    return (Increment) super.setId(id);<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>  @Override<a name="line.305"></a>
+<span class="sourceLineNo">306</span>  public Increment setDurability(Durability
d) {<a name="line.306"></a>
+<span class="sourceLineNo">307</span>    return (Increment) super.setDurability(d);<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>  @Override<a name="line.310"></a>
+<span class="sourceLineNo">311</span>  public Increment setFamilyCellMap(NavigableMap&lt;byte[],
List&lt;Cell&gt;&gt; map) {<a name="line.311"></a>
+<span class="sourceLineNo">312</span>    return (Increment) super.setFamilyCellMap(map);<a
name="line.312"></a>
+<span class="sourceLineNo">313</span>  }<a name="line.313"></a>
+<span class="sourceLineNo">314</span><a name="line.314"></a>
+<span class="sourceLineNo">315</span>  @Override<a name="line.315"></a>
+<span class="sourceLineNo">316</span>  public Increment setClusterIds(List&lt;UUID&gt;
clusterIds) {<a name="line.316"></a>
+<span class="sourceLineNo">317</span>    return (Increment) super.setClusterIds(clusterIds);<a
name="line.317"></a>
+<span class="sourceLineNo">318</span>  }<a name="line.318"></a>
+<span class="sourceLineNo">319</span><a name="line.319"></a>
+<span class="sourceLineNo">320</span>  @Override<a name="line.320"></a>
+<span class="sourceLineNo">321</span>  public Increment setCellVisibility(CellVisibility
expression) {<a name="line.321"></a>
+<span class="sourceLineNo">322</span>    return (Increment) super.setCellVisibility(expression);<a
name="line.322"></a>
+<span class="sourceLineNo">323</span>  }<a name="line.323"></a>
+<span class="sourceLineNo">324</span><a name="line.324"></a>
+<span class="sourceLineNo">325</span>  @Override<a name="line.325"></a>
+<span class="sourceLineNo">326</span>  public Increment setACL(String user, Permission
perms) {<a name="line.326"></a>
+<span class="sourceLineNo">327</span>    return (Increment) super.setACL(user,
perms);<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>  @Override<a name="line.330"></a>
+<span class="sourceLineNo">331</span>  public Increment setACL(Map&lt;String,
Permission&gt; perms) {<a name="line.331"></a>
+<span class="sourceLineNo">332</span>    return (Increment) super.setACL(perms);<a
name="line.332"></a>
+<span class="sourceLineNo">333</span>  }<a name="line.333"></a>
+<span class="sourceLineNo">334</span><a name="line.334"></a>
+<span class="sourceLineNo">335</span>  @Override<a name="line.335"></a>
+<span class="sourceLineNo">336</span>  public Increment setTTL(long ttl) {<a
name="line.336"></a>
+<span class="sourceLineNo">337</span>    return (Increment) super.setTTL(ttl);<a
name="line.337"></a>
+<span class="sourceLineNo">338</span>  }<a name="line.338"></a>
+<span class="sourceLineNo">339</span>}<a name="line.339"></a>
 
 
 


Mime
View raw message