Module org.apache.lucene.core
Package org.apache.lucene.index
Class MappedMultiFields.MappedMultiTermsEnum
java.lang.Object
org.apache.lucene.index.TermsEnum
org.apache.lucene.index.FilterLeafReader.FilterTermsEnum
org.apache.lucene.index.MappedMultiFields.MappedMultiTermsEnum
- All Implemented Interfaces:
BytesRefIterator
- Enclosing class:
MappedMultiFields
private static class MappedMultiFields.MappedMultiTermsEnum
extends FilterLeafReader.FilterTermsEnum
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.index.TermsEnum
TermsEnum.SeekStatus -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final String(package private) final MergeStateFields inherited from class org.apache.lucene.index.FilterLeafReader.FilterTermsEnum
in -
Constructor Summary
ConstructorsConstructorDescriptionMappedMultiTermsEnum(String field, MergeState mergeState, MultiTermsEnum multiTermsEnum) -
Method Summary
Modifier and TypeMethodDescriptionintdocFreq()Returns the number of documents containing the current term.postings(PostingsEnum reuse, int flags) GetPostingsEnumfor the current term, with control over whether freqs, positions, offsets or payloads are required.longReturns the total number of occurrences of this term across all documents (the sum of the freq() for each doc that has this term).
-
Field Details
-
mergeState
-
field
-
-
Constructor Details
-
MappedMultiTermsEnum
-
-
Method Details
-
docFreq
Description copied from class:TermsEnumReturns the number of documents containing the current term. Do not call this when the enum is unpositioned.TermsEnum.SeekStatus.END.- Overrides:
docFreqin classFilterLeafReader.FilterTermsEnum- Throws:
IOException
-
totalTermFreq
Description copied from class:TermsEnumReturns the total number of occurrences of this term across all documents (the sum of the freq() for each doc that has this term). Note that, like other term measures, this measure does not take deleted documents into account.- Overrides:
totalTermFreqin classFilterLeafReader.FilterTermsEnum- Throws:
IOException
-
postings
Description copied from class:TermsEnumGetPostingsEnumfor 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:
postingsin classFilterLeafReader.FilterTermsEnum- Parameters:
reuse- pass a prior PostingsEnum for possible reuseflags- specifies which optional per-document values you require; seePostingsEnum.FREQS- Throws:
IOException
-