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
TermsEnumTermsEnum.SeekStatus.END.docFreq in class FilterLeafReader.FilterTermsEnumjava.io.IOExceptionpublic long totalTermFreq()
throws java.io.IOException
TermsEnumtotalTermFreq in class FilterLeafReader.FilterTermsEnumjava.io.IOExceptionpublic PostingsEnum postings(PostingsEnum reuse, int flags) throws java.io.IOException
TermsEnumPostingsEnum 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.FilterTermsEnumreuse - pass a prior PostingsEnum for possible reuseflags - specifies which optional per-document values
you require; see PostingsEnum.FREQSjava.io.IOException