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

OfflineSorter.getWriter should pass number of items it will write

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.6, 7.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: