I want to create one scanner that will give me result with 2 prefix filters
For example I want all the rows that their key starts with the string "x" or start with the string "y".
Currently I know to do it only with one prefix with the following way:
scan.setRowPrefixFilter(prefixFiltet)
In this case you can't use the
setRowPrefixFilter
API, you have to use the more generalsetFilter
API, something like:I have just tried but it doesn't seems you can add a regular expression to a RowPrefixFilter, so I guess the solution is to make two requests using
This will get you the rows you want.
I have implement a batch set prefix filter ,maybe can help you