Module org.apache.lucene.sandbox
Package org.apache.lucene.sandbox.search
Class TermAutomatonScorer.DocIDQueue
java.lang.Object
org.apache.lucene.util.PriorityQueue<TermAutomatonQuery.EnumAndScorer>
org.apache.lucene.sandbox.search.TermAutomatonScorer.DocIDQueue
- All Implemented Interfaces:
Iterable<TermAutomatonQuery.EnumAndScorer>
- Enclosing class:
TermAutomatonScorer
private static class TermAutomatonScorer.DocIDQueue
extends PriorityQueue<TermAutomatonQuery.EnumAndScorer>
Sorts by docID so we can quickly pull out all scorers that are on the same (lowest) docID.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanDetermines the ordering of objects in this priority queue.Methods inherited from class org.apache.lucene.util.PriorityQueue
add, addAll, clear, getHeapArray, insertWithOverflow, iterator, pop, remove, size, top, updateTop, updateTopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DocIDQueue
public DocIDQueue(int maxSize)
-
-
Method Details
-
lessThan
Description copied from class:PriorityQueueDetermines the ordering of objects in this priority queue. Subclasses must define this one method.- Specified by:
lessThanin classPriorityQueue<TermAutomatonQuery.EnumAndScorer>- Returns:
trueiff parameterais less than parameterb.
-