lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: BytesRef comparable
Date Mon, 03 May 2010 14:47:31 GMT
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 <uwe@thetaphi.de> 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: uwe@thetaphi.de
>
>
>> -----Original Message-----
>> From: yseeley@gmail.com [mailto:yseeley@gmail.com] On Behalf Of Yonik
>> Seeley
>> Sent: Monday, May 03, 2010 3:31 PM
>> To: dev@lucene.apache.org
>> Subject: Re: BytesRef comparable
>>
>> On Mon, May 3, 2010 at 9:07 AM, Uwe Schindler <uwe@thetaphi.de> 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: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message