Skip to content

Commit b6bf55a

Browse files
committed
dynamic pruning bulk add
1 parent 9472dca commit b6bf55a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lucene/core/src/java/org/apache/lucene/search/comparators/NumericComparator.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import org.apache.lucene.search.Scorer;
3232
import org.apache.lucene.util.DocIdSetBuilder;
3333
import org.apache.lucene.util.FixedBitSet;
34+
import org.apache.lucene.util.IntsRef;
3435

3536
/**
3637
* Abstract numeric comparator for comparing numeric values. This comparator provides a skipping
@@ -251,6 +252,16 @@ public void visit(int docID, byte[] packedValue) {
251252
}
252253
}
253254

255+
@Override
256+
public void visit(IntsRef ref) {
257+
adder.add(ref);
258+
}
259+
260+
@Override
261+
public void visit(DocIdSetIterator iterator) throws IOException {
262+
adder.add(iterator);
263+
}
264+
254265
@Override
255266
public PointValues.Relation compare(byte[] minPackedValue, byte[] maxPackedValue) {
256267
long min = sortableBytesToLong(minPackedValue);

0 commit comments

Comments
 (0)