Excellent, was thinking the same thing last night, too - I'm probably not the 
only person using Strings, so a "here is what you can use to switch to longs" 
either as documentation or actual code would be helpful.  And I, too, quickly 
looked at hashCode yesterday to see if I can just use that, but then realized 
it was int.  I like the big wheel analogy. :)

 Otis
--
Sematext is hiring -- http://sematext.com/about/jobs.html?mls
Lucene, Solr, Nutch, Katta, Hadoop, HBase, UIMA, NLP, NER, IR



----- Original Message ----
> From: Sean Owen <[email protected]>
> To: [email protected]
> Sent: Tuesday, August 4, 2009 7:55:32 AM
> Subject: Re: IDs to longs?
> 
> Agree, was just this second writing a String-to-long hash method.
> Agree that providing some assistance to make the mapping is good.
> 
> First I am going to make the core of the change just to evaluate its
> effects, on performance and the API, more realistically.
> 
> On Tue, Aug 4, 2009 at 12:43 PM, Grant Ingersoll wrote:
> > Seems like it may be worthwhile to help people transition by offering some 
> utility classes around this.  For instance, a simple interface to take in a 
> comparable and map it (and persist the mapping) into a Mahout generated long 
> would be useful along with methods to do the reverse.  You could back it by 
> Lucene or by a Map or even a DB (but let the user pick).

Reply via email to