The scenario like this: In a hbase table, there are different columns for different rows, e.g.: row1 have columns fm:a, fm:b, fm:c row2 have columns fm:a, fm:d
So I want to use a scan to test if a row have both column fm:a & fm:b, if so, return this row, otherwise, this row should not be returned in the scan result. In above case, I just want to row1 be returned.
I check the Filters in hbase, looks like if do this in Filter level, the performance will be bad. Any ideas?
you need to add each column to the scan - sth like this. Create a hashTable , say ht