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
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
-
Method Summary
Methods inherited from class org.apache.lucene.search.uhighlight.OffsetsEnum
compareTo, toString
-
Constructor Details
-
MultiOffsetsEnum
- Throws:
IOException
-
-
Method Details
-
nextPosition
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 classOffsetsEnum
- Throws:
IOException
-
getTerm
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 classOffsetsEnum
- Throws:
IOException
- See Also:
-
startOffset
- Specified by:
startOffset
in classOffsetsEnum
- Throws:
IOException
-
endOffset
- Specified by:
endOffset
in classOffsetsEnum
- Throws:
IOException
-
freq
Description copied from class:OffsetsEnum
An estimate of the number of occurrences of this term/OffsetsEnum.- Specified by:
freq
in classOffsetsEnum
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOffsetsEnum
- Throws:
IOException
-