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) boolean
atMatch()
protected final boolean
Determines the ordering of objects in this priority queue.(package private) boolean
(package private) void
Methods inherited from class org.apache.lucene.util.PriorityQueue
add, addAll, clear, getHeapArray, insertWithOverflow, iterator, pop, remove, size, top, updateTop, updateTop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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: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 parametera
is less than parameterb
.
-
startDocument
- Throws:
IOException
-
nextPosition
- Throws:
IOException
-
atMatch
boolean atMatch()
-