You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2017/04/12 21:23:41 UTC

[jira] [Created] (LUCENE-7782) OfflineSorter.getWriter should pass number of items it will write

Michael McCandless created LUCENE-7782:
------------------------------------------

             Summary: OfflineSorter.getWriter should pass number of items it will write
                 Key: LUCENE-7782
                 URL: https://issues.apache.org/jira/browse/LUCENE-7782
             Project: Lucene - Core
          Issue Type: Improvement
            Reporter: Michael McCandless
            Assignee: Michael McCandless


When {{OfflineSorter}} needs to write a new file, either a temp file or the final sorted output file, it calls {{getWriter}}.  There is a default impl, but experts can override it to create their own writers.

It would be helpful to pass the total item count that will be written to this file when calling {{getWriter}} because then the (expert) user has a little more information which can be useful when creating the temp or final file.

It's low cost for {{OfflineSorter}} to track this.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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