Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> How to scan rows starting with a particular string?

Copy link to this message
Re: How to scan rows starting with a particular string?
Why did you feel this is error prone?
If you use server side filters by providing start/end Row or use a
PrefixFilter, the scans should work well, as it is going to be
sequential access. Depending on your data and use case, you may need
to tune it further (say by applying additional filters, limit results,
etc)... see here for some more tips on speeding up scans:

On Tue, Apr 26, 2011 at 2:45 AM, Hari Sreekumar
> Hi,
> I need to scan rows which have rowskey starting with a particular string
> (say abc). I am currently doing this by using startrow=abc and endrow=abc~.
> (I am appending ~ as it is ASCII 126). It usually works, but is there a
> better, less error prone way? I know we can do this using filters, but won't
> that be worse performance-wise?
> Thanks,
> Hari