Class Highlighter.FragmentQueue
- java.lang.Object
-
- org.apache.lucene.util.PriorityQueue<TextFragment>
-
- org.apache.lucene.search.highlight.Highlighter.FragmentQueue
-
- All Implemented Interfaces:
java.lang.Iterable<TextFragment>
- Enclosing class:
- Highlighter
static class Highlighter.FragmentQueue extends PriorityQueue<TextFragment>
-
-
Constructor Summary
Constructors Constructor Description FragmentQueue(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
lessThan(TextFragment fragA, TextFragment fragB)
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
public final boolean lessThan(TextFragment fragA, TextFragment fragB)
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<TextFragment>
- Returns:
true
iff parametera
is less than parameterb
.
-
-