lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LUCENE-4319) Rethink Fields.size() returning -1
Date Tue, 21 Aug 2012 13:27:37 GMT
Uwe Schindler created LUCENE-4319:
-------------------------------------

             Summary: 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