You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ch...@apache.org on 2025/01/02 11:56:10 UTC
(lucene) branch main updated: Improve use of generics in DisjunctionDISIApproximation construction (#14095)
This is an automated email from the ASF dual-hosted git repository.
chegar pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/main by this push:
new 3a198e28ec8 Improve use of generics in DisjunctionDISIApproximation construction (#14095)
3a198e28ec8 is described below
commit 3a198e28ec8f45454661e7fcb1ac4f646e3da41f
Author: Chris Hegarty <62...@users.noreply.github.com>
AuthorDate: Thu Jan 2 11:56:05 2025 +0000
Improve use of generics in DisjunctionDISIApproximation construction (#14095)
---
.../java/org/apache/lucene/search/DisjunctionDISIApproximation.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lucene/core/src/java/org/apache/lucene/search/DisjunctionDISIApproximation.java b/lucene/core/src/java/org/apache/lucene/search/DisjunctionDISIApproximation.java
index 8dc551e3c95..f74111f7ded 100644
--- a/lucene/core/src/java/org/apache/lucene/search/DisjunctionDISIApproximation.java
+++ b/lucene/core/src/java/org/apache/lucene/search/DisjunctionDISIApproximation.java
@@ -33,7 +33,7 @@ import org.apache.lucene.util.FixedBitSet;
public final class DisjunctionDISIApproximation extends DocIdSetIterator {
public static DisjunctionDISIApproximation of(
- Collection<DisiWrapper> subIterators, long leadCost) {
+ Collection<? extends DisiWrapper> subIterators, long leadCost) {
return new DisjunctionDISIApproximation(subIterators, leadCost);
}
@@ -46,7 +46,8 @@ public final class DisjunctionDISIApproximation extends DocIdSetIterator {
private DisiWrapper leadTop;
private int minOtherDoc;
- public DisjunctionDISIApproximation(Collection<DisiWrapper> subIterators, long leadCost) {
+ public DisjunctionDISIApproximation(
+ Collection<? extends DisiWrapper> subIterators, long leadCost) {
// Using a heap to store disjunctive clauses is great for exhaustive evaluation, when a single
// clause needs to move through the heap on every iteration on average. However, when
// intersecting with a selective filter, it is possible that all clauses need advancing, which