public static class OffsetsEnum.OfPostings extends OffsetsEnum
PostingsEnum -- the typical/standard OE impl.OffsetsEnum.MultiOffsetsEnum, OffsetsEnum.OfMatchesIterator, OffsetsEnum.OfMatchesIteratorWithSubs, OffsetsEnum.OfPostings| Modifier and Type | Field and Description |
|---|---|
private int |
freq |
private int |
posCounter |
private PostingsEnum |
postingsEnum |
private BytesRef |
term |
EMPTY| Constructor and Description |
|---|
OfPostings(BytesRef term,
int freq,
PostingsEnum postingsEnum) |
OfPostings(BytesRef term,
PostingsEnum postingsEnum) |
| Modifier and Type | Method and Description |
|---|---|
int |
endOffset() |
int |
freq()
An estimate of the number of occurrences of this term/OffsetsEnum.
|
PostingsEnum |
getPostingsEnum() |
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 BytesRef term
private final PostingsEnum postingsEnum
private final int freq
private int posCounter
public OfPostings(BytesRef term, int freq, PostingsEnum postingsEnum) throws java.io.IOException
java.io.IOExceptionpublic OfPostings(BytesRef term, PostingsEnum postingsEnum) throws java.io.IOException
java.io.IOExceptionpublic PostingsEnum getPostingsEnum()
public boolean nextPosition()
throws java.io.IOException
OffsetsEnumnextPosition 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.IOExceptionpublic int freq()
throws java.io.IOException
OffsetsEnumfreq in class OffsetsEnumjava.io.IOException