Class NearSpansUnordered.SpanTotalLengthEndPositionWindow

  • All Implemented Interfaces:
    java.lang.Iterable<Spans>
    Enclosing class:
    NearSpansUnordered

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

      • totalSpanLength

        int totalSpanLength
      • maxEndPosition

        int maxEndPosition
    • Constructor Detail

      • SpanTotalLengthEndPositionWindow

        public SpanTotalLengthEndPositionWindow()
    • 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 class PriorityQueue<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()