- java.lang.Object
-
- org.apache.lucene.util.PriorityQueue<Spans>
-
- org.apache.lucene.queries.spans.SpanPositionQueue
-
- All Implemented Interfaces:
java.lang.Iterable<Spans>
class SpanPositionQueue extends PriorityQueue<Spans>
-
-
Constructor Summary
Constructors Constructor Description SpanPositionQueue(int maxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
lessThan(Spans s1, Spans s2)
Determines 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, updateTop
-
-
-
-
Method Detail
-
lessThan
protected boolean lessThan(Spans s1, Spans s2)
Description copied from class:PriorityQueue
Determines the ordering of objects in this priority queue. Subclasses must define this one method.- Specified by:
lessThan
in classPriorityQueue<Spans>
- Returns:
true
iff parametera
is less than parameterb
.
-
-