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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to