Package org.apache.lucene.index
Class FreqProxTermsWriter.SortingTermsEnum
- java.lang.Object
-
- org.apache.lucene.index.TermsEnum
-
- org.apache.lucene.index.FilterLeafReader.FilterTermsEnum
-
- org.apache.lucene.index.FreqProxTermsWriter.SortingTermsEnum
-
- All Implemented Interfaces:
BytesRefIterator
- Enclosing class:
- FreqProxTermsWriter
private static class FreqProxTermsWriter.SortingTermsEnum extends FilterLeafReader.FilterTermsEnum
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.index.TermsEnum
TermsEnum.SeekStatus
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Sorter.DocMap
docMap
private boolean
hasPositions
private IndexOptions
indexOptions
-
Fields inherited from class org.apache.lucene.index.FilterLeafReader.FilterTermsEnum
in
-
-
Constructor Summary
Constructors Constructor Description SortingTermsEnum(TermsEnum in, Sorter.DocMap docMap, IndexOptions indexOptions, boolean hasPositions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PostingsEnum
postings(PostingsEnum reuse, int flags)
GetPostingsEnum
for the current term, with control over whether freqs, positions, offsets or payloads are required.-
Methods inherited from class org.apache.lucene.index.FilterLeafReader.FilterTermsEnum
attributes, docFreq, impacts, next, ord, seekCeil, seekExact, seekExact, seekExact, term, termState, totalTermFreq
-
-
-
-
Field Detail
-
docMap
final Sorter.DocMap docMap
-
indexOptions
private final IndexOptions indexOptions
-
hasPositions
private final boolean hasPositions
-
-
Constructor Detail
-
SortingTermsEnum
SortingTermsEnum(TermsEnum in, Sorter.DocMap docMap, IndexOptions indexOptions, boolean hasPositions)
-
-
Method Detail
-
postings
public PostingsEnum postings(PostingsEnum reuse, int flags) throws java.io.IOException
Description copied from class:TermsEnum
GetPostingsEnum
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
.- Overrides:
postings
in classFilterLeafReader.FilterTermsEnum
- Parameters:
reuse
- pass a prior PostingsEnum for possible reuseflags
- specifies which optional per-document values you require; seePostingsEnum.FREQS
- Throws:
java.io.IOException
-
-