Yeah it can return null -- eg MultiTermsEnum does this if it has 0 subs. I suppose we could have it return a fake comparator, since if there are no terms how would it matter... but that makes me nervous...
Mike On Mon, May 3, 2010 at 9:46 AM, Uwe Schindler <[email protected]> wrote: > Is it allowed to return null? - oh no. In Lucene's Codecs it does not do > this, maybe it’s a javadocs relict! Mike? > > ----- > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: [email protected] > > >> -----Original Message----- >> From: [email protected] [mailto:[email protected]] On Behalf Of Yonik >> Seeley >> Sent: Monday, May 03, 2010 3:31 PM >> To: [email protected] >> Subject: Re: BytesRef comparable >> >> On Mon, May 3, 2010 at 9:07 AM, Uwe Schindler <[email protected]> wrote: >> > In current flex, the TermsEnum has a method called getComparator() >> that returns the comparator used in this TermsEnum. >> >> Gah.... more code that "may return null". >> Anyway, I made a mistake... Solr's BoundedTreeSet does accept a >> comparator. >> >> -Yonik >> Apache Lucene Eurocon 2010 >> 18-21 May 2010 | Prague >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
