The straight forward soln is to have a custom comparator. Otherwise you may have to do some inversion in your logic while storing negative numbers and use the reversion of that inversion while reading back.
Regards Ram On Wed, Mar 19, 2014 at 5:40 PM, Chaitanya <[email protected]>wrote: > Hi Haosdent Huang, > > Before anything, thanks for your reply. > > I tried your solution but its not working for me. > I think the problem is with the BinaryComparator. > It fails to compare the numbers as it compares bits by bits. > > I hope there should be some straight forward solution to this problem. > > Thanks again > > > > ----- > Regards, > Chaitanya > -- > View this message in context: > http://apache-hbase.679495.n3.nabble.com/Filters-failing-to-compare-negative-numbers-int-float-double-or-long-tp4057268p4057276.html > Sent from the HBase User mailing list archive at Nabble.com. >
