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.Stringfield(package private) MergeStatemergeState-
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 intdocFreq()Returns the number of documents containing the current term.PostingsEnumpostings(PostingsEnum reuse, int flags)GetPostingsEnumfor the current term, with control over whether freqs, positions, offsets or payloads are required.longtotalTermFreq()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.IOExceptionDescription 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:
java.io.IOException
-
totalTermFreq
public long totalTermFreq() throws java.io.IOExceptionDescription 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:
java.io.IOException
-
postings
public PostingsEnum postings(PostingsEnum reuse, int flags) throws java.io.IOException
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:
java.io.IOException
-
-