我正在使用 Hbase 分页过滤器使用以下代码迭代表中的所有行
Scan scan=new Scan(Bytes.toBytes(key))
Filter filter=new PageFilter(10000);
scan.setFilter(pageFilter);
scan.setCaching(100000);// 1lakh i know it should be 10K but this should not be the reson for scanner to return more keys as i commented out the line still getting more keys
ResultScanner resultScanner=htable.getScanner(scan);
但在大多数情况下,我得到的特定键的值超过 10000 个值,它工作正常并返回 10000 个等于分页因子的键,但在特定情况下它返回超过 10000 个键。
在理解这种行为的方向上的任何一点都会有很大的帮助
最佳答案
好的,从 HBase Api Pagination 文档中可以清楚地看出,分页过滤器不保证提供行 <= 分页因子,因为过滤器应用于每个区域服务器
关于java - Hbase 分页过滤器返回更多键,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26562014/