public static class OffsetsEnum.OfMatchesIterator extends OffsetsEnum
MatchesIterator; does not look at submatches.OffsetsEnum.MultiOffsetsEnum, OffsetsEnum.OfMatchesIterator, OffsetsEnum.OfMatchesIteratorWithSubs, OffsetsEnum.OfPostings| Modifier and Type | Field and Description |
|---|---|
private MatchesIterator |
matchesIterator |
private java.util.function.Supplier<BytesRef> |
termSupplier |
EMPTY| Constructor and Description |
|---|
OfMatchesIterator(MatchesIterator matchesIterator,
java.util.function.Supplier<BytesRef> termSupplier) |
| Modifier and Type | Method and Description |
|---|---|
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() |
close, compareTo, toStringprivate final MatchesIterator matchesIterator
private final java.util.function.Supplier<BytesRef> termSupplier
public OfMatchesIterator(MatchesIterator matchesIterator, java.util.function.Supplier<BytesRef> termSupplier)
public boolean nextPosition()
throws java.io.IOException
OffsetsEnumnextPosition in class OffsetsEnumjava.io.IOExceptionpublic int freq()
throws java.io.IOException
OffsetsEnumfreq in class OffsetsEnumjava.io.IOExceptionpublic BytesRef getTerm() throws java.io.IOException
OffsetsEnumgetTerm in class OffsetsEnumjava.io.IOExceptionPassage.getMatchTerms()public int startOffset()
throws java.io.IOException
startOffset in class OffsetsEnumjava.io.IOExceptionpublic int endOffset()
throws java.io.IOException
endOffset in class OffsetsEnumjava.io.IOException