org.apache.lucene.queries.intervals

## Interface IntervalMatchesIterator

- All Superinterfaces:
    MatchesIterator

      public interface IntervalMatchesIterator
      extends MatchesIterator

  An extension of MatchesIterator that allows it to be treated as an IntervalIterator This is necessary to get access to `IntervalIterator.gaps()` and `IntervalIterator.width()` when constructing matches

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `gaps()` The number of top-level gaps inside the current match
    `int` | `width()` The width of the current match

    - ### Methods inherited from interface org.apache.lucene.search.MatchesIterator

      `endOffset, endPosition, getQuery, getSubMatches, next, startOffset, startPosition`

- - ### Method Detail

    - #### gaps

          int gaps()

      The number of top-level gaps inside the current match
      See Also:
        `IntervalIterator.gaps()`

    - #### width

          int width()

      The width of the current match
      See Also:
        `IntervalIterator.width()`

Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.