hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Marc Spaggiari <jean-m...@spaggiari.org>
Subject Re: Rowkey Filter Padding 1 byte?
Date Wed, 23 Jul 2014 18:43:37 GMT
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