- java.lang.Object
-
- org.apache.lucene.util.PriorityQueue<MoreLikeThis.ScoreTerm>
-
- org.apache.lucene.queries.mlt.MoreLikeThis.FreqQ
-
- All Implemented Interfaces:
java.lang.Iterable<MoreLikeThis.ScoreTerm>
- Enclosing class:
- MoreLikeThis
private static class MoreLikeThis.FreqQ extends PriorityQueue<MoreLikeThis.ScoreTerm>
PriorityQueue that orders words by score.
-
-
Constructor Summary
Constructors Constructor Description FreqQ(int maxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
lessThan(MoreLikeThis.ScoreTerm a, MoreLikeThis.ScoreTerm b)
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(MoreLikeThis.ScoreTerm a, MoreLikeThis.ScoreTerm b)
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<MoreLikeThis.ScoreTerm>
- Returns:
true
iff parametera
is less than parameterb
.
-
-