lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-4319) Rethink Fields.size() returning -1
Date Tue, 21 Aug 2012 18:05:38 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-4319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13438917#comment-13438917
] 

Michael McCandless commented on LUCENE-4319:
--------------------------------------------

+1 to require Fields.size() is always implemented.

                
> Rethink Fields.size() returning -1
> ----------------------------------
>
>                 Key: LUCENE-4319
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4319
>             Project: Lucene - Core
>          Issue Type: Task
>          Components: core/index
>    Affects Versions: 4.0-BETA
>            Reporter: Uwe Schindler
>
> Fields.size() is allowed to return -1, if size of iterator is unknown. But for all codecs,
we know this size and also Fields implements Iterable (see also discussion on LUCENE-4315).
> We should think about enfocing it to be defined.
> Some things to do:
> - Maybe automatically make Fields.size() base class iterate, if not reimplemented (risky!).
> - MultiFields.size() must implement it

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message