Package org.apache.lucene.queries.mlt
Class MoreLikeThis.FreqQ
- 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 booleanlessThan(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, 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:PriorityQueueDetermines the ordering of objects in this priority queue. Subclasses must define this one method.- Specified by:
lessThanin classPriorityQueue<MoreLikeThis.ScoreTerm>- Returns:
trueiff parameter a is less than parameter b.
-
-