hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Marc Spaggiari <jean-m...@spaggiari.org>
Subject Re: Is setting the start and endrow inclusive of the keys provided
Date Thu, 18 Aug 2016 14:22:51 GMT
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 <nkachara@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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message