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
private static class MappedMultiFields.MappedMultiTerms extends FilterLeafReader.FilterTerms
-
-
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.FilterTerms
in
-
Fields inherited from class org.apache.lucene.index.Terms
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description MappedMultiTerms(java.lang.String field, MergeState mergeState, MultiTerms multiTerms)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDocCount()
Returns the number of documents that have at least one term for this field.long
getSumDocFreq()
Returns the sum ofTermsEnum.docFreq()
for all terms in this field.long
getSumTotalTermFreq()
Returns the sum ofTermsEnum.totalTermFreq()
for all terms in this field.TermsEnum
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 Detail
-
mergeState
final MergeState mergeState
-
field
final java.lang.String field
-
-
Constructor Detail
-
MappedMultiTerms
public MappedMultiTerms(java.lang.String field, MergeState mergeState, MultiTerms multiTerms)
-
-
Method Detail
-
iterator
public TermsEnum iterator() throws java.io.IOException
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:
java.io.IOException
-
size
public long size() throws java.io.IOException
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:
java.io.IOException
-
getSumTotalTermFreq
public long getSumTotalTermFreq() throws java.io.IOException
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:
java.io.IOException
-
getSumDocFreq
public long getSumDocFreq() throws java.io.IOException
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:
java.io.IOException
-
getDocCount
public int getDocCount() throws java.io.IOException
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:
java.io.IOException
-
-