HBase - Scan.setBatch 如何影响 ResultScanner 的下一次迭代次数?

HBase - How does the Scan.setBatch effect ResultScanner's Next Number of Iterations?

假设我有:

现在我创建一个 Scan,它将 return 来自 table 的两行的所有单元格值。

但是我把批次设置为scan.setBatch(5)。我使用扫描成功查询 table 并返回 ResultScanner.

现在,当我执行 resultScanner.next() 时,我会返回结果。

我猜我必须调用 next 4 次才能遍历所有单元格。是吗?

迭代次数:

  1. returns 'r1','C1' 到 'C5'
  2. 的值
  3. returns 'r1','C6' 到 'C10'
  4. 的值
  5. returns 'r2','C1' 到 'C5'
  6. 的值
  7. returns 'r2','C6' 到 'C10'
  8. 的值

对吗?

我已经知道 api 文档的发布位置...

是的,没错。主要用于大量列。我希望你知道 getCache,是行级别的。大量列也不是推荐的设计模式。快乐学习