private static class SortingLeafReader.SortingTermsEnum extends FilterLeafReader.FilterTermsEnum
TermsEnum.SeekStatus
Modifier and Type | Field and Description |
---|---|
(package private) Sorter.DocMap |
docMap |
private boolean |
hasPositions |
private IndexOptions |
indexOptions |
in
Constructor and Description |
---|
SortingTermsEnum(TermsEnum in,
Sorter.DocMap docMap,
IndexOptions indexOptions,
boolean hasPositions) |
Modifier and Type | Method and Description |
---|---|
PostingsEnum |
postings(PostingsEnum reuse,
int flags)
Get
PostingsEnum for the current term, with
control over whether freqs, positions, offsets or payloads
are required. |
attributes, docFreq, impacts, next, ord, seekCeil, seekExact, seekExact, seekExact, term, termState, totalTermFreq
final Sorter.DocMap docMap
private final IndexOptions indexOptions
private final boolean hasPositions
public SortingTermsEnum(TermsEnum in, Sorter.DocMap docMap, IndexOptions indexOptions, boolean hasPositions)
public PostingsEnum postings(PostingsEnum reuse, int flags) throws java.io.IOException
TermsEnum
PostingsEnum
for the current term, with
control over whether freqs, positions, offsets or payloads
are required. Do not call this when the enum is
unpositioned. This method will not return null.
NOTE: the returned iterator may return deleted documents, so
deleted documents have to be checked on top of the PostingsEnum
.
postings
in class FilterLeafReader.FilterTermsEnum
reuse
- pass a prior PostingsEnum for possible reuseflags
- specifies which optional per-document values
you require; see PostingsEnum.FREQS
java.io.IOException