|
From: Ning L. <nin...@gm...> - 2008-03-18 23:32:53
|
On Tue, Mar 18, 2008 at 2:57 PM, Yonik Seeley <yo...@ap...> wrote: > If one wants each user in an email system to span a maximum of 1/8th > of the ring then the > hash could be hash = (username.hashCode() << 29) | (id.hashCode() >> 3) This could work. > Or if the number of emails per user is small, hash = username.hashCode() We cannot really assume that, right? :) Let's use long for now. Ning |