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 MergeState
Fields inherited from class org.apache.lucene.index.FilterLeafReader.FilterTermsEnum
in
-
Constructor Summary
ConstructorsConstructorDescriptionMappedMultiTermsEnum
(String field, MergeState mergeState, MultiTermsEnum multiTermsEnum) -
Method Summary
Modifier and TypeMethodDescriptionint
docFreq()
Returns the number of documents containing the current term.postings
(PostingsEnum reuse, int flags) GetPostingsEnum
for the current term, with control over whether freqs, positions, offsets or payloads are required.long
Returns 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:TermsEnum
Returns the number of documents containing the current term. Do not call this when the enum is unpositioned.TermsEnum.SeekStatus.END
.- Overrides:
docFreq
in classFilterLeafReader.FilterTermsEnum
- Throws:
IOException
-
totalTermFreq
Description copied from class:TermsEnum
Returns 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:
totalTermFreq
in classFilterLeafReader.FilterTermsEnum
- Throws:
IOException
-
postings
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:
IOException
-