Package org.apache.lucene.search.spans
Class NearSpansUnordered.SpanTotalLengthEndPositionWindow
- java.lang.Object
-
- org.apache.lucene.util.PriorityQueue<Spans>
-
- org.apache.lucene.search.spans.NearSpansUnordered.SpanTotalLengthEndPositionWindow
-
- All Implemented Interfaces:
java.lang.Iterable<Spans>
- Enclosing class:
- NearSpansUnordered
private class NearSpansUnordered.SpanTotalLengthEndPositionWindow extends PriorityQueue<Spans>
Maintain totalSpanLength and maxEndPosition
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intmaxEndPosition(package private) inttotalSpanLength
-
Constructor Summary
Constructors Constructor Description SpanTotalLengthEndPositionWindow()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) booleanatMatch()protected booleanlessThan(Spans spans1, Spans spans2)Determines the ordering of objects in this priority queue.(package private) booleannextPosition()(package private) voidstartDocument()-
Methods inherited from class org.apache.lucene.util.PriorityQueue
add, clear, getHeapArray, insertWithOverflow, iterator, pop, remove, size, top, updateTop, updateTop
-
-
-
-
Method Detail
-
lessThan
protected final boolean lessThan(Spans spans1, Spans spans2)
Description copied from class:PriorityQueueDetermines the ordering of objects in this priority queue. Subclasses must define this one method.- Specified by:
lessThanin classPriorityQueue<Spans>- Returns:
trueiff parameter a is less than parameter b.
-
startDocument
void startDocument() throws java.io.IOException- Throws:
java.io.IOException
-
nextPosition
boolean nextPosition() throws java.io.IOException- Throws:
java.io.IOException
-
atMatch
boolean atMatch()
-
-