Hi Lars,
Thank You for quick reply, but I'm not talking about row key, but about
column qualifier (column key).

Best Regards.

On Sun, Mar 7, 2010 at 5:03 PM, Lars Francke <lars.fran...@gmail.com> wrote:

> Hi,
>
> > Is it possible to use regex as column qualifier in the get operation ?
>
> no, that's not possible. For a "get"[1] operation you need to specify
> the exact row key you are looking for and there will be at most one
> result.
>
> You can use a "scan"[2] (which may return multiple results) in
> combination with a RowFilter[3] and a RegexStringComparator[4]. See
> the tests[5] for a few examples.
>
> Cheers,
> Lars
>
> [1] <
> http://hadoop.apache.org/hbase/docs/r0.20.3/api/org/apache/hadoop/hbase/client/HTable.html#get(org.apache.hadoop.hbase.client.Get)
> >
> [2] <
> http://hadoop.apache.org/hbase/docs/r0.20.3/api/org/apache/hadoop/hbase/client/HTable.html#getScanner(org.apache.hadoop.hbase.client.Scan)
> >
> [3] <
> http://hadoop.apache.org/hbase/docs/r0.20.3/api/org/apache/hadoop/hbase/filter/RowFilter.html
> >
> [4] <
> http://hadoop.apache.org/hbase/docs/r0.20.3/api/org/apache/hadoop/hbase/filter/RegexStringComparator.html
> >
> [5] <
> http://svn.apache.org/viewvc/hadoop/hbase/tags/0.20.3/src/test/org/apache/hadoop/hbase/filter/TestFilter.java?revision=902976&view=markup
> >
>

Reply via email to