Module org.apache.lucene.queries
Package org.apache.lucene.queries.spans
Class NearSpansUnordered.SpanTotalLengthEndPositionWindow
java.lang.Object
org.apache.lucene.util.PriorityQueue<Spans>
org.apache.lucene.queries.spans.NearSpansUnordered.SpanTotalLengthEndPositionWindow
- Enclosing class:
NearSpansUnordered
Maintain totalSpanLength and maxEndPosition
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) booleanatMatch()protected final booleanDetermines the ordering of objects in this priority queue.(package private) boolean(package private) voidMethods inherited from class org.apache.lucene.util.PriorityQueue
add, addAll, clear, getHeapArray, insertWithOverflow, iterator, pop, remove, size, top, updateTop, updateTopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
totalSpanLength
int totalSpanLength -
maxEndPosition
int maxEndPosition
-
-
Constructor Details
-
SpanTotalLengthEndPositionWindow
public SpanTotalLengthEndPositionWindow()
-
-
Method Details
-
lessThan
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 parameterais less than parameterb.
-
startDocument
- Throws:
IOException
-
nextPosition
- Throws:
IOException
-
atMatch
boolean atMatch()
-