Row pagination with HBase -
is there way pagination in hbase based on rowkeys?
i wanted have same effect in sql select * table limit 10 offset 10
.
if that's not possible, how should best design rowkeys query appropriately?
you can make use of pagefilter that. when create instance of pagefilter, specify pagesize parameter, controls how many rows per page should returned.
filter filter = new pagefilter(10);
and if wish through hbase shell can use limit scan query :
scan 'table', limit => 10
Comments
Post a Comment