[Redis] HBase和Redis映射mapping交互

举个例子

HBase表结构,示例TBL_CUST_TEST

Row Key

column-family1

column-family2

column-family3

column1

column1

column1

column2

column3

column1

key1

t1:abc

t2:gdxdf

t4:dfads

t3:hello

t2:world

key2

t3:abc

t1:gdxdf

t4:dfads

t3:hello

t2:dfdsfa

t3:dfdf

key3

t2:dfadfasd

t1:dfdasddsf

t2:dfxxdfasd

t1:taobao.com

示例


TableName:TBL_CUST_TEST

Rowkey:  cust_test

Column-family: PersonalInfo

Column: Age

Value:28

 

由于Redis是Hash,只能 key field value

所以:


Key:   TableName.Rowkey

Field: Column-Family.Age

Value: 28

分类上一篇:     分类下一篇:

Leave a Reply