Another option is to use Apache Phoenix ( http://phoenix.incubator.apache.org/) as it takes care of all these details for you automatically.
Cheers, James On Wed, Mar 19, 2014 at 7:49 AM, Ted Yu <yuzhih...@gmail.com> wrote: > In 0.96+, extensible data type API is provided. > Please take a look > at > hbase-common/src/main/java/org/apache/hadoop/hbase/types/package-info.java > > Specifically the OrderedInt16, OrderedInt32 and OrderedInt64 would be of > interest to you. > > Cheers > > > > On Wed, Mar 19, 2014 at 5:33 AM, praveenesh kumar <praveen...@gmail.com > >wrote: > > > I am not sure if this can helps - https://github.com/ndimiduk/orderly > > > > This API supports negative keys, as far as I know. You can give it a try, > > its simple to implement your keys using this API > > > > Regards > > Prav > > > > > > On Wed, Mar 19, 2014 at 12:26 PM, Chaitanya <chaitanya.ck...@gmail.com > > >wrote: > > > > > Hi Ramkrishna, > > > > > > There is one more problem, i.e. I don't have the rights to add anything > > to > > > the hbase jar. > > > The problem with writing a custom comparator is that we have to add it > to > > > the jar so that its available to all the hbase region servers. > > > Please correct me if I am wrong. > > > Thanks > > > > > > > > > > > > ----- > > > 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-tp4057268p4057279.html > > > Sent from the HBase User mailing list archive at Nabble.com. > > > > > >