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
Fields Modifier and Type Field Description (package private) java.lang.String
field
(package private) MergeState
mergeState
-
Fields inherited from class org.apache.lucene.index.FilterLeafReader.FilterTermsEnum
in
-
-
Constructor Summary
Constructors Constructor Description MappedMultiTermsEnum(java.lang.String field, MergeState mergeState, MultiTermsEnum multiTermsEnum)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
docFreq()
Returns the number of documents containing the current term.PostingsEnum
postings(PostingsEnum reuse, int flags)
GetPostingsEnum
for the current term, with control over whether freqs, positions, offsets or payloads are required.long
totalTermFreq()
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 Detail
-
mergeState
final MergeState mergeState
-
field
final java.lang.String field
-
-
Constructor Detail
-
MappedMultiTermsEnum
public MappedMultiTermsEnum(java.lang.String field, MergeState mergeState, MultiTermsEnum multiTermsEnum)
-
-
Method Detail
-
docFreq
public int docFreq() throws java.io.IOException
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:
java.io.IOException
-
totalTermFreq
public long totalTermFreq() throws java.io.IOException
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:
java.io.IOException
-
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
-
-