Search code examples
hbaserow-key

Scan table with multiple rowkey filter in hbase


I have tried with single row-key ,its working fine but i am unable to fetch multiple row-key scan.

scan 'LPV',{FILTER =>"(PrefixFilter('174','194')"}

getting error,find Filter to support scan multiple row key ranges but didnt find is it possible or not ? I want to fetch multiple records based on multiple row-keys. Any help,Thanks.


Solution

  • You just need to OR two PrefixFilters as in

    scan 'LPV',{FILTER =>"(PrefixFilter('174') OR PrefixFilter('194')"}