incubator-hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward J. Yoon" <edwardy...@apache.org>
Subject Object key sort
Date Fri, 19 Dec 2008 04:42:15 GMT
We are store the object to row key.

put(new BlockID(int x, int y).getBytes(), columnName, data);
--
BlockID.readFields() {
  this.x = in.readInt();
  this.y = in.readInt();
}
--
Then, It'll be sorted in Hbase table as describe below. (Hbase
row/column is alphabetical sort. )

0, 0
1, 0
2, 0
0, 1
1, 1
2, 1
..

How can we get a sorted set as grouped by x?

0, 0
0, 1
0, 2
1, 0
1, 1
1, 2


-- 
Best Regards, Edward J. Yoon @ NHN, corp.
edwardyoon@apache.org
http://blog.udanax.org

Mime
View raw message