hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ramkrishna vasudevan <ramkrishna.s.vasude...@gmail.com>
Subject Re: Filters failing to compare negative numbers (int,float,double or long)
Date Wed, 19 Mar 2014 12:14:23 GMT
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 <chaitanya.ck100@gmail.com>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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message