hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: How to do a fast range scan on a prefix
Date Fri, 05 Jun 2015 18:22:24 GMT
You can utilize PrefixFilter.

See example in http://hbase.apache.org/book.html#scan

On Fri, Jun 5, 2015 at 11:18 AM, jeremy p <athomewithagroovebox@gmail.com>
wrote:

> Assume that my keys look like this :
> bar:0
> bar:1
> bar:2
> baz:0
> baz:1
> foo:0
> foo:1
> foo:2
>
> How do I do a fast range scan that returns all the rows that begin with
> "baz:"?  Assume that I know nothing about any of the other rows in the
> table.
>
> Thanks for taking a look!
>
> --Jeremy
>

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