
本文共 5431 字,大约阅读时间需要 18 分钟。
���������������-Hbase Rowkey������
1������������Rowkey������������
1.1���Rowkey���������
Rowkey���������MySQL���Oracle������������������������������������������������������������������������������������������������������HBase������������������Rowkey���������������������������������������������Rowkey������������
1.2���Rowkey���������
Rowkey���HBase������������������������
- ������������������������������������Region������������������������������������������������
- MemStore������������������Rowkey������������������������������������������������������������
- HFile���������������������Rowkey������������������������������������������������������������������
1.3���Rowkey������������������
���������������Rowkey���uid+phone+name
Rowkey���������������������������������������������������������������������
- ���������������������+������������������������������������������uid=001 AND phone=12345678901 AND name=zhang
- ������������������������������������uid=001 AND phone=123���
- ���������������������������������uid=001
���������Rowkey���������������������������������������������������������
- phone=12345678901 AND name=zhang
- phone=12345678901
- name=zhang
1.4���Rowkey���Region���������������
HBase���������������������Rowkey������������������Region������������Rowkey���������������������������������������������������������������������������������������������������������������������������
2���Rowkey������������
2.1���Salting
Salting���������������������Rowkey������������������������������������������������������������������������������������������������������:
- ������������������������������������
- ���������������������������������������������������������������������������������������������������������������������
2.2���Hashing
Hashing���������Rowkey������������������������������������������������������������Rowkey������������������������Rowkey���������������������������������Rowkey���������������������������������������
- ���������������������������������������������������������������������������������������������������
- ������������������������������������������������������������������������������������������������������������������������
2.3���Reversing
Reversing���������Rowkey������������������������������������������������������������������������������������������������������ Keyhotspot���������
2.4���Rowkey���������
Rowkey���������������������������������������������16���������������������������������������
- ���������Rowkey���������HFile���������������������������������������������������������
- MemStore���������������������������������������������������
- ���Rowkey���������������������������8������������������������������������������������
3���Rowkey������������������
3.1���������������Rowkey������
���������������������Rowkey���������������������
- ������������������������������������������������������������sellerId+timestamp+orderId������Rowkey���
- ���������������������������������������buyId+timestamp+orderId������������
- ������������������������������������orderNo������������������������
3.2���������������������������������
���������������������������������������Rowkey���������salt+sellerId+timestamp������������������������������������������������
- ������Scand ���������������������������������Range Query���
- ���sellerId���sellerId+timestamp���������������������
- ������������������������������������������������
3.3���������������Rowkey������
���������������������������Rowkey���������������prefix+uid���prefix+idcard���prefix+tele������������������prefix������������md5(uid)������������������������
3.4������������Rowkey������
������������������������Rowkey���������������
- ���������������������������������������carId+timestamp������������
- ������prefix+carId+timestamp������������������������������������������������
3.5������������������
������������������������������������������������������������������������������Long.MaxValue - timestamp���������������������������������
- ������������������������������������������������������ DefensiveStencil���������uid������startRow���stopRow���������������������
- ���������������������������������������������������������������
3.6���OpenTSDB���Rowkey������
������������������
- ������������
- ���������������������������������������
- ���������������������������������
- ���������������������������������������
������������������
OpenTSDB���������������������������
- ���������������������������������������������������������������������������������������
- ���������������������������������������timege������������ time <=���������������������
- ������������������������������������������������������
���������������������slat+metric_uid+timestamp+tagk1+tagv1+[tankN+tagvN]
������������������������������������������������������������������������������������������������������������������������������������
3.7���HBase������������
���������������������
���������������������������������������������������������������������������
- ������phone=1311111111���������������������������
- ������������������������������������phone=* AND name=*)������
������������
������������������������������������������������������������������Rowkey���������������������������������������������������������������������������������������������������������������������������������������������������������
������������
���������������������������������������������
- OLTP���������������������������������������������Phoenix������SQL+OLTP���
- ���������������������������Solr���Es���������������������������
发表评论
最新留言
关于作者
