HBase: Filters not working for negative integers

2013-06-26 Thread Madhukar Pandey
We have implemented QualifierFilter as well as ValueFilter (using BinaryComparator) of Hbase successfully and they are working fine for most of our cases. However they are failing in cases like number -10 or number -10 Please note that number = -10 is working perfectly fine. Also, number 10

HBase: Filters not working for negative integers

2013-06-26 Thread Madhukar Pandey
Please ignore my previous mail..there was some copy paste issue in it.. this is the correct mail.. We have implemented QualifierFilter as well as ValueFilter (using BinaryComparator) of Hbase successfully and they are working fine for most of our cases. However they are failing in cases like

Re: HBase: Filters not working for negative integers

2013-06-26 Thread James Taylor
You'll need to flip the sign bit for ints and longs like Phoenix does. Feel free to borrow our serializers (in PDataType) or just use Phoenix. Thanks, James On 06/26/2013 12:16 AM, Madhukar Pandey wrote: Please ignore my previous mail..there was some copy paste issue in it.. this is the