I'm a newbie to HBase and using 0.20.0 (from Sept 8th) I think my issue may
be similar to the one posted earlier, however I seem to be getting all rows
regardless of my filter settings.

Scan scan = new Scan();
scan.addFamily("fam1".getBytes());
scan.addFamily("fam2".getBytes());
                                
scan.setFilter(new
SingleColumnValueFilter("fam1".getBytes(),"c1".getBytes(),CompareOp.EQUAL,"somenonexistingvalue".getBytes()));
ResultScanner rs = mytable.getScanner(scan);
for(Result r : rs) 
{ 
  // I get all rows from the my table!!! 

  // also r.getValue("fam1","c1") is NULL for some reason.
}
rs.close();

I assume what I'm trying to do is fairly common so maybe I'm missing
something.   However all I want to do is filter rows IN based on a column
value.
 
Any help would be appreciated.
-- 
View this message in context: 
http://www.nabble.com/SingleColumnValueFilter-doesn%27t-seem-to-work-tp25448971p25448971.html
Sent from the HBase User mailing list archive at Nabble.com.

Reply via email to