You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Nkechi Achara <nk...@googlemail.com> on 2016/08/18 07:43:35 UTC
Is setting the start and endrow inclusive of the keys provided
Hi,
If i set a start and stop row in a Scan will this retrieve the inclusive
records for the start row and the end row or will it be exclusive in some
way.
I ask as I am attempting to perform a scan in the following fashion:
new Scan(Bytes.toBytes(startRow),Bytes.toBytes(endrow) )
and when |I pick this up from hbase via spark on hbase I am finding that i
am losing a record where the key should be picked up, but it is not.
So I would like to know if the parameters for start and end row are
exclusive, and if there are how can i ensure they are, is there any way to
make it exclusive?
Thanks,
Keech
Re: Is setting the start and endrow inclusive of the keys provided
Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
Does this help?
/**
* Create a Scan operation for the range of rows specified.
* @param startRow row to start scanner at or after (inclusive)
* @param stopRow row to stop scanner before (exclusive)
*/
public Scan(byte [] startRow, byte [] stopRow) {
2016-08-18 3:43 GMT-04:00 Nkechi Achara <nk...@googlemail.com>:
> Hi,
>
> If i set a start and stop row in a Scan will this retrieve the inclusive
> records for the start row and the end row or will it be exclusive in some
> way.
>
> I ask as I am attempting to perform a scan in the following fashion:
>
> new Scan(Bytes.toBytes(startRow),Bytes.toBytes(endrow) )
>
> and when |I pick this up from hbase via spark on hbase I am finding that i
> am losing a record where the key should be picked up, but it is not.
>
> So I would like to know if the parameters for start and end row are
> exclusive, and if there are how can i ensure they are, is there any way to
> make it exclusive?
>
> Thanks,
>
> Keech
>