You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Dave Birdsall <da...@esgyn.com> on 2016/05/04 22:20:35 UTC

Does Scan API guarantee key order?

Hi,



Suppose I have an HBase table with many regions, and possibly many rows in
the memstore from recent additions.



Suppose I have a program that opens a Scan on the table, from start to
finish. Full table scan.



Does HBase guarantee that rows are returned in key order? Or might it jump
around, say, read one region first, then maybe another (and not necessarily
in region order)?



Thanks,



Dave

Re: Does Scan API guarantee key order?

Posted by Ted Yu <yu...@gmail.com>.
Yes, key order is guaranteed.

On Wed, May 4, 2016 at 3:20 PM, Dave Birdsall <da...@esgyn.com>
wrote:

> Hi,
>
>
>
> Suppose I have an HBase table with many regions, and possibly many rows in
> the memstore from recent additions.
>
>
>
> Suppose I have a program that opens a Scan on the table, from start to
> finish. Full table scan.
>
>
>
> Does HBase guarantee that rows are returned in key order? Or might it jump
> around, say, read one region first, then maybe another (and not necessarily
> in region order)?
>
>
>
> Thanks,
>
>
>
> Dave
>