hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mingtao Zhang <mail2ming...@gmail.com>
Subject Re: Rowkey Filter Padding 1 byte?
Date Wed, 23 Jul 2014 19:18:00 GMT
Thank you :) ... sorry, seems I didn't make the question clear :(.

My rowkey looks similar to this

murmurHashing(<pet name>) + 'reversed time stamp'

I am looking for a way to say 'get all rows within a time range'.

Best Regards,
Mingtao


On Wed, Jul 23, 2014 at 2:43 PM, Jean-Marc Spaggiari <
jean-marc@spaggiari.org> wrote:

> Hi Mingtao,
>
> You can use Fuzzy filter for this, or regular expression.
>
> You can take a look here:
>
> https://hbase.apache.org/apidocs/org/apache/hadoop/hbase/filter/FuzzyRowFilter.html
>
> Fuzzy might not be able to match your last byte variation. You might need
> the Regex filter for that:
> RowFilter rowFilter = new RowFilter(CompareOp.EQUAL, regExString);
>
> JM
>
>
> 2014-07-23 14:39 GMT-04:00 Mingtao Zhang <mail2mingtao@gmail.com>:
>
> > Hi All,
> >
> > Is it possible to pad the first byte while specifiy the following bytes
> for
> > rowkey filter?
> >
> > xxxxxxxx19890208~xxxxxxxx19890209 will select from the following if
> > availble:
> >
> > 0000000019890208
> > 0000000119890208
> > 0000000219890208
> > ...
> > 1111111119890208
> > 0000000019890209
> > ...
> > 1111111119890209
> >
> > Thank you in advance!
> >
> > Best Regards,
> > Mingtao
> >
>

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