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) int
maxEndPosition
(package private) int
totalSpanLength
-
Constructor Summary
Constructors Constructor Description SpanTotalLengthEndPositionWindow()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
atMatch()
protected boolean
lessThan(Spans spans1, Spans spans2)
Determines the ordering of objects in this priority queue.(package private) boolean
nextPosition()
(package private) void
startDocument()
-
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: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 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()
-
-