hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stack <st...@duboce.net>
Subject Re: Searching for the rows
Date Mon, 15 Jun 2009 16:53:21 GMT
On Mon, Jun 15, 2009 at 9:45 AM, Piotr Praczyk <piotr.praczyk@gmail.com>wrote:

>
> Does anybody maybe know, if there exists a method of finding the first row
> larger (and smaller) in the lexycographical order than given ( not
> necessarily existing) row id ?



If you open a scanner with a first row, hbase will find the first row that
matches or the next one after the provided first row.

To stay within a range that all adheres to a particular prefix, see the
http://hadoop.apache.org/hbase/docs/r0.19.3/api/org/apache/hadoop/hbase/filter/PrefixRowFilter.html.
Don't forget to wrap it in a
http://hadoop.apache.org/hbase/docs/r0.19.3/api/org/apache/hadoop/hbase/filter/WhileMatchRowFilter.html.
See the 'description' on this page,
http://hadoop.apache.org/hbase/docs/r0.19.3/api/org/apache/hadoop/hbase/filter/package-summary.html#package_description,
for why WhileMatchRowFilter is needed.

St.Ack

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