hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaaa342156 <karunk...@outlook.com>
Subject single column value filter to find rows greater than a certain date not working
Date Fri, 03 Oct 2014 11:35:36 GMT
I am storing date in a column in Hbase table. I am using below syntax to find
dates greater than 20110810 but the resultset is bringing back all the rows.
Any thoughts.

Filter filter = new SingleColumnValueFilter(Bytes.toBytes("cf"),
Bytes.toBytes("d"), CompareOp.GREATER_OR_EQUAL, Bytes.toBytes("20110810"));
scan.setFilter(filter);
ResultScanner rs = table.getScanner(scan);



--
View this message in context: http://apache-hbase.679495.n3.nabble.com/single-column-value-filter-to-find-rows-greater-than-a-certain-date-not-working-tp4064684.html
Sent from the HBase User mailing list archive at Nabble.com.

Mime
View raw message