Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

EN_rowkey generating function example

zhang_xzhi edited this page Mar 27, 2014 · 1 revision

user defined rowkey generating function, to easy the query.

for example.

one rowkey is designed as following.

md5(userId)+userId(reverse)+cycle(reverse)

we can define one rowkey generating function named billCategoryRowKey, configed in, now we can query like this.

select * from billCategory rowkey is billCategoryRowKey ("2088123456781234_20140401")

Clone this wiki locally