You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2017/11/27 04:34:00 UTC
[jira] [Resolved] (LUCENE-8049) IndexWriter.getMergingSegments
should return a Set, not Collection
[ https://issues.apache.org/jira/browse/LUCENE-8049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Smiley resolved LUCENE-8049.
----------------------------------
Resolution: Fixed
Fix Version/s: 7.2
> IndexWriter.getMergingSegments should return a Set, not Collection
> ------------------------------------------------------------------
>
> Key: LUCENE-8049
> URL: https://issues.apache.org/jira/browse/LUCENE-8049
> Project: Lucene - Core
> Issue Type: Improvement
> Components: core/index
> Reporter: David Smiley
> Assignee: David Smiley
> Priority: Minor
> Fix For: 7.2
>
> Attachments: LUCENE_8049.patch
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org