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
>
|