Hi, thanks for your quick answer! I figured it out by my self since the
mailing server was down the last 2hours?! Btw. I did option 1. But I used
a LinkedHashMap insead. Do you knows whats the better choice? TreeMap
or LinkedHashMap?
Anyway thanks :)
2013/9/13 Pradeep Gollakota
I have created a HBase Table in the hbase shell and added some data. In
http://hbase.apache.org/book/dm.sort.html is written that the datasets are
first sorted by the rowkey and then the column. So I tried something in the
HBase Shell: http://pastebin.com/gLVAX0rJ
Everything looks fine. I got the
No problem! In this case, insertion order is the same as natural order, so
I think a LinkedHashMap is probably a better choice for this particular use
case.
Here's a great SO post about the differences between HashMap, TreeMap and
LinkedHashMap.
But I used
a LinkedHashMap insead. Do you knows whats the better choice? TreeMap
or LinkedHashMap?
If you are asking from functionality perspective then there is a difference
between them that LinkedHashMap maintains the order in which items were
entered in the map. So if they were entered in the
Yes, thats a good point @ Shahab, but since hbase returns the values sorted
everything shlould be fine and I can use the LinkedHashMap.
Thanks to both of you!
2013/9/13 Shahab Yunus shahab.yu...@gmail.com
But I used
a LinkedHashMap insead. Do you knows whats the better choice? TreeMap
or