Re: OrderPreservingPartitioner and manual token assignment

2010-07-16 Thread Schubert Zhang
Maybe the OrderPreservingPartitioner should let user define the customized comparator. In fact, user can implement his/her own XXXOrderPreservingPartitioner. On Tue, Jun 22, 2010 at 8:34 PM, Sylvain Lebresne wrote: > 2010/6/22 Maxim Kramarenko : > > Hello! > > > > I use OrderPreservingPartitione

Re: OrderPreservingPartitioner and manual token assignment

2010-06-22 Thread Sylvain Lebresne
2010/6/22 Maxim Kramarenko : > Hello! > > I use OrderPreservingPartitioner and assign tokens manually. > > Questions are: > > 1) Why range sorted in alphabetical order, not numeric order ? > It was ok with RandomPartitioner With RandomPartitioner, tokens are md5 hashes, thus number and the compari

OrderPreservingPartitioner and manual token assignment

2010-06-22 Thread Maxim Kramarenko
Hello! I use OrderPreservingPartitioner and assign tokens manually. Questions are: 1) Why range sorted in alphabetical order, not numeric order ? It was ok with RandomPartitioner Address Status Load Range Ring 84 172.19.0.35