You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Aji Janis <aj...@gmail.com> on 2013/06/24 18:43:27 UTC

Filtering help

Hello,

In my Hbase table I have four families. Not all rows have data for all the
families. And not all rows have the same qualifiers either. So imagine this
scenario:

rowid |f1 |f2 |f3    |
-------------------------------------------------------
row1 |q1, q2 |q4 |q6   |
row2 |q1, q3 |q4,q5 |       |
row3 |q2, q3 |q5 |q6   |
-------------------------------------------------------

I want to scan the table to only get rows that have q1 and q3 and q4. So my
scanner should return row2 in this example.
Q1. How can I do this?
Q2. Is there a difference between how I can do this for normal java calls
vs. when setting up the scan for a map reduce job?

Thanks for your help.