如何在HBase中实现分页? [英] How to achieve pagination in HBase?

查看:91
本文介绍了如何在HBase中实现分页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Hbase的新手,我需要使用Java和Jersey以及Hbase作为我的数据库来实现分页。我需要一些帮助,我怎样才能实现与HBase分页,因为数据将分布在不同地区。我想每页显示1000条记录。

I am new to Hbase and I need to implement pagination using Java with Jersey and Hbase as my database. I need some help, how can I achieve pagination with Hbase as data will be distributed among various regions. I want to show 1000 records per page.

请让我知道如何在不使用任何过滤器的情况下实现这一点。它会非常感激。

Please let me know how to achieve this without using any filter. It will be really thankful.

推荐答案

您可以通过使用habse filter中的PageFilter来实现。这将帮助您从Hbase获取分页行。有一篇关于分页的好文章,你可以参考执行。
http://www.techsquids.com/bd/pagination-with -hbase /

You can do so by using the PageFilter present in habse filter. This will help you to get the paginated Rows from Hbase. There is a good article for pagination that you can refer to perform so. http://www.techsquids.com/bd/pagination-with-hbase/

这篇关于如何在HBase中实现分页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆