I have got the scan result for a given partial row key using prefix filter:
Row key examples: 123_abc, 456_def, 789_ghi
var prefix=Bytes.toBytes("123")
var scan = new Scan(prefix)
var prefixFilter = new PrefixFilter(prefix)
scan.setFilter(prefixFilter)
var resultScanner = table.getScanner(scan)
Now, my question is how can I specify multiple prefix filters that will go as input for the scan operation. The Result object should contain all the rows that have row key value with the given prefix, say 123 or 456.
I have tried the following answer which uses FilterList approach but couldn't get the required result:
Set Multiple prefix row filter to scanner hbase java
Any help on this (in Scala or Java) would be greatly appreciated. Thank you.