Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7782

OfflineSorter.getWriter should pass number of items it will write

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.6, 7.0
    • None
    • None
    • New

    Description

      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.

      Attachments

        1. LUCENE-7782.patch
          7 kB
          Michael McCandless

        Activity

          People

            mikemccand Michael McCandless
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: