org.apache.lucene.search.uhighlight

## Class OffsetsEnum.MultiOffsetsEnum

- java.lang.Object
- - org.apache.lucene.search.uhighlight.OffsetsEnum
  - - org.apache.lucene.search.uhighlight.OffsetsEnum.MultiOffsetsEnum

- All Implemented Interfaces:
    Closeable, AutoCloseable, Comparable<OffsetsEnum>
  Enclosing class:
    OffsetsEnum

      public static class OffsetsEnum.MultiOffsetsEnum
      extends OffsetsEnum

  A view over several OffsetsEnum instances, merging them in-place

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class org.apache.lucene.search.uhighlight.OffsetsEnum

      `OffsetsEnum.MultiOffsetsEnum, OffsetsEnum.OfMatchesIterator, OffsetsEnum.OfMatchesIteratorWithSubs, OffsetsEnum.OfPostings`

  - ### Field Summary

    - ### Fields inherited from class org.apache.lucene.search.uhighlight.OffsetsEnum

      `EMPTY`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MultiOffsetsEnum(List<OffsetsEnum> inner)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `int` | `endOffset()`
    `int` | `freq()` An estimate of the number of occurrences of this term/OffsetsEnum.
    `BytesRef` | `getTerm()` The term at this position.
    `boolean` | `nextPosition()` Advances to the next position and returns true, or if can't then returns false.
    `int` | `startOffset()`

    - ### Methods inherited from class org.apache.lucene.search.uhighlight.OffsetsEnum

      `compareTo, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### MultiOffsetsEnum

          public MultiOffsetsEnum(List<OffsetsEnum> inner)
                           throws IOException

      Throws:
        `IOException`

  - ### Method Detail

    - #### nextPosition

          public boolean nextPosition()
                               throws IOException

      Description copied from class: `OffsetsEnum`
      Advances to the next position and returns true, or if can't then returns false. Note that the initial state of this class is not positioned.
      Specified by:
        `nextPosition` in class `OffsetsEnum`
      Throws:
        `IOException`

    - #### getTerm

          public BytesRef getTerm()
                           throws IOException

      Description copied from class: `OffsetsEnum`
      The term at this position. This BytesRef is safe to continue to refer to, even after we move to the next position.
      Specified by:
        `getTerm` in class `OffsetsEnum`
      Throws:
        `IOException`
      See Also:
        `Passage.getMatchTerms()`

    - #### startOffset

          public int startOffset()
                          throws IOException

      Specified by:
        `startOffset` in class `OffsetsEnum`
      Throws:
        `IOException`

    - #### endOffset

          public int endOffset()
                        throws IOException

      Specified by:
        `endOffset` in class `OffsetsEnum`
      Throws:
        `IOException`

    - #### freq

          public int freq()
                   throws IOException

      Description copied from class: `OffsetsEnum`
      An estimate of the number of occurrences of this term/OffsetsEnum.
      Specified by:
        `freq` in class `OffsetsEnum`
      Throws:
        `IOException`

    - #### close

          public void close()
                     throws IOException

      Specified by:
        `close` in interface `Closeable`
      Specified by:
        `close` in interface `AutoCloseable`
      Overrides:
        `close` in class `OffsetsEnum`
      Throws:
        `IOException`

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