HBase 程式設計
v 0.20
http://www.classcloud.org/cloud/wiki/waue/2009/0626
程式
HTable
HBaseAdmin
HBaseConfiguration
HTableDescriptor
Put
Get
Scanner
指令
目標: restaurantant
Detail Products Name Locate P1 P2 P3 T01 Gun-Long 01 20 40 30 T02 ESing 02 50 T03 Sun-Don 03 40 30
- create table
create 'restaurant', 'Detail', 'Products' put 'restaurant', 'T01', 'Detail:Name', 'Gun-long' put 'restaurant', 'T02', 'Detail:Name', 'ESing' put 'restaurant', 'T01', 'Products:P1', '20' put 'restaurant', 'T01', 'Products:P2', '40' put 'restaurant', 'T01', 'Products:P3', '30' put 'restaurant', 'T01', 'Products:P4', '50' put 'restaurant', 'T02', 'Products:P1', '50'
Detail Products Name P1 P2 P3 T01 Gun-Long 20 40 30 T02 ESing 50
最後 restaurant
Detail Products Name Locate P1 P2 P3 T01 Gun-Long 01 20 40 30 T02 ESing 02 50 T03 Sun-Don 03 40 30
Last modified 15 years ago
Last modified on Jan 31, 2010, 3:37:37 PM