Set Multiple prefix row filter to scanner hbase java
问题 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) 回答1: In this case you can't use the setRowPrefixFilter API, you have to use the more general setFilter API, something like: scan.setFilter( new FilterList( FilterList.Operator.MUST_PASS_ONE, new PrefixFilter(