private static class OffsetsEnum.OfMatchesIteratorWithSubs.CachedOE extends OffsetsEnum
OffsetsEnum.MultiOffsetsEnum, OffsetsEnum.OfMatchesIterator, OffsetsEnum.OfMatchesIteratorWithSubs, OffsetsEnum.OfPostings| Modifier and Type | Field and Description |
|---|---|
(package private) int |
endOffset |
(package private) int |
startOffset |
(package private) BytesRef |
term |
EMPTY| Modifier | Constructor and Description |
|---|---|
private |
CachedOE(BytesRef term,
int startOffset,
int endOffset) |
| 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, toStringfinal BytesRef term
final int startOffset
final int endOffset
private CachedOE(BytesRef term, int startOffset, int endOffset)
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