Package org.apache.lucene.index
Class MappedMultiFields.MappedMultiTerms
java.lang.Object
org.apache.lucene.index.Terms
org.apache.lucene.index.FilterLeafReader.FilterTerms
org.apache.lucene.index.MappedMultiFields.MappedMultiTerms
- Enclosing class:
- MappedMultiFields
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final String
(package private) final MergeState
Fields inherited from class org.apache.lucene.index.FilterLeafReader.FilterTerms
in
Fields inherited from class org.apache.lucene.index.Terms
EMPTY_ARRAY
-
Constructor Summary
ConstructorsConstructorDescriptionMappedMultiTerms
(String field, MergeState mergeState, MultiTerms multiTerms) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of documents that have at least one term for this field.long
Returns the sum ofTermsEnum.docFreq()
for all terms in this field.long
Returns the sum ofTermsEnum.totalTermFreq()
for all terms in this field.iterator()
Returns an iterator that will step through all terms.long
size()
Returns the number of terms for this field, or -1 if this measure isn't stored by the codec.Methods inherited from class org.apache.lucene.index.FilterLeafReader.FilterTerms
getStats, hasFreqs, hasOffsets, hasPayloads, hasPositions
-
Field Details
-
mergeState
-
field
-
-
Constructor Details
-
MappedMultiTerms
-
-
Method Details
-
iterator
Description copied from class:Terms
Returns an iterator that will step through all terms. This method will not return null.- Overrides:
iterator
in classFilterLeafReader.FilterTerms
- Throws:
IOException
-
size
Description copied from class:Terms
Returns the number of terms for this field, or -1 if this measure isn't stored by the codec. Note that, just like other term measures, this measure does not take deleted documents into account.- Overrides:
size
in classFilterLeafReader.FilterTerms
- Throws:
IOException
-
getSumTotalTermFreq
Description copied from class:Terms
Returns the sum ofTermsEnum.totalTermFreq()
for all terms in this field. Note that, just like other term measures, this measure does not take deleted documents into account.- Overrides:
getSumTotalTermFreq
in classFilterLeafReader.FilterTerms
- Throws:
IOException
-
getSumDocFreq
Description copied from class:Terms
Returns the sum ofTermsEnum.docFreq()
for all terms in this field. Note that, just like other term measures, this measure does not take deleted documents into account.- Overrides:
getSumDocFreq
in classFilterLeafReader.FilterTerms
- Throws:
IOException
-
getDocCount
Description copied from class:Terms
Returns the number of documents that have at least one term for this field. Note that, just like other term measures, this measure does not take deleted documents into account.- Overrides:
getDocCount
in classFilterLeafReader.FilterTerms
- Throws:
IOException
-