1 Aug 2009 06:11
Re: HBase schema design
See the example on the bottom of the page .. http://hadoop.apache.org/hbase/docs/r0.19.3/api/overview-summary.html It is very well documented ... and u can easily understand! On Fri, Jul 31, 2009 at 2:26 PM, Ninad Raut <hbase.user.ninad@...>wrote: > Use a Scanner instead of a get.... > > 2009/7/31 <y_823910@...> > > > As to your suggestion, how do I complete following codes? > > or any better codes would be great! > > > > HTable table = new HTable(config, "user"); > > Get g = new Get(Bytes.toBytes("U1")); > > Result r = table.get(g); > > > > for loop--- //I don't know how many articles the user have. > > byte [] t = r.getValue(Bytes.toBytes("chapter"), Bytes.toBytes("?")); > > //t1 > > byte [] c = r.getValue(Bytes.toBytes("chapter"), Bytes.toBytes("?")); > > //c1 > > byte [] d = r.getValue(Bytes.toBytes("chapter"), Bytes.toBytes("?")); > > //d1 > > end loop--- > > > > Thank you very much > >(Continue reading)
RSS Feed