Class NearSpansUnordered.SpanTotalLengthEndPositionWindow

java.lang.Object
org.apache.lucene.util.PriorityQueue<Spans>
org.apache.lucene.queries.spans.NearSpansUnordered.SpanTotalLengthEndPositionWindow
All Implemented Interfaces:
Iterable<Spans>
Enclosing class:
NearSpansUnordered

private class NearSpansUnordered.SpanTotalLengthEndPositionWindow extends PriorityQueue<Spans>
Maintain totalSpanLength and maxEndPosition
  • Field Details

    • totalSpanLength

      int totalSpanLength
    • maxEndPosition

      int maxEndPosition
  • Constructor Details

    • SpanTotalLengthEndPositionWindow

      public SpanTotalLengthEndPositionWindow()
  • Method Details

    • 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 class PriorityQueue<Spans>
      Returns:
      true iff parameter a is less than parameter b.
    • startDocument

      void startDocument() throws IOException
      Throws:
      IOException
    • nextPosition

      boolean nextPosition() throws IOException
      Throws:
      IOException
    • atMatch

      boolean atMatch()