private static class MappedMultiFields.MappedMultiTermsEnum extends FilterLeafReader.FilterTermsEnum
TermsEnum.SeekStatus
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
field |
(package private) MergeState |
mergeState |
in
Constructor and Description |
---|
MappedMultiTermsEnum(java.lang.String field,
MergeState mergeState,
MultiTermsEnum multiTermsEnum) |
Modifier and Type | Method and Description |
---|---|
int |
docFreq()
Returns the number of documents containing the current
term.
|
PostingsEnum |
postings(PostingsEnum reuse,
int flags)
Get
PostingsEnum 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).
|
final MergeState mergeState
final java.lang.String field
public MappedMultiTermsEnum(java.lang.String field, MergeState mergeState, MultiTermsEnum multiTermsEnum)
public int docFreq() throws java.io.IOException
TermsEnum
TermsEnum.SeekStatus.END
.docFreq
in class FilterLeafReader.FilterTermsEnum
java.io.IOException
public long totalTermFreq() throws java.io.IOException
TermsEnum
totalTermFreq
in class FilterLeafReader.FilterTermsEnum
java.io.IOException
public PostingsEnum postings(PostingsEnum reuse, int flags) throws java.io.IOException
TermsEnum
PostingsEnum
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
.
postings
in class FilterLeafReader.FilterTermsEnum
reuse
- pass a prior PostingsEnum for possible reuseflags
- specifies which optional per-document values
you require; see PostingsEnum.FREQS
java.io.IOException