3、Hbase

hbase---Hadopp database

HBase的数据模式

将众多表按行健和时间戳合并成一个虚表,形成一个“BigTable”

anchor Row Key Time Stamp Column Family 
"com.cnn.www" t9 anchor:cnnsi.com = "CNN"
"com.cnn.www" t8 anchor:my.look.ca = "CNN.com"

 

Row Key Time Stamp ColumnFamily "contents:"
"com.cnn.www" t6 contents:html = "<html>..."
"com.cnn.www" t5 contents:html = "<html>..."
"com.cnn.www" t3 contents:html = "<html>..."

这是两张表,合成一张表后:

contents anchor Row Key Time Stamp ColumnFamily  ColumnFamily 
"com.cnn.www" t9   anchor:cnnsi.com = "CNN"
"com.cnn.www" t8   anchor:my.look.ca = "CNN.com"
"com.cnn.www" t6 contents:html = "<html>..."  
"com.cnn.www" t5 contents:html = "<html>..."  
"com.cnn.www" t3 contents:html = "<html>..."  

每个行健可以使多行,以时间戳作为版本区分,列族中的列可以往后增加;

 

猜你喜欢

转载自nickfover.iteye.com/blog/2155492