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

IndexWriter.getMergingSegments should return a Set, not Collection

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 7.2
    • core/index
    • None
    • New

    Description

      IndexWriter.getMergingSegments is called by the MergePolicy so that it can filter out segments to merge using mergingSegments.contains(seg). The implementation is a HashSet, thankfully but the declared type of this method ought to be defined as a Set as well.

      Attachments

        1. LUCENE_8049.patch
          6 kB
          David Smiley

        Activity

          People

            dsmiley David Smiley
            dsmiley David Smiley
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: