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.Stringfield(package private) MergeStatemergeState-
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 intgetDocCount()Returns the number of documents that have at least one term for this field.longgetSumDocFreq()Returns the sum ofTermsEnum.docFreq()for all terms in this field.longgetSumTotalTermFreq()Returns the sum ofTermsEnum.totalTermFreq()for all terms in this field.TermsEnumiterator()Returns an iterator that will step through all terms.longsize()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:TermsReturns an iterator that will step through all terms. This method will not return null.- Overrides:
iteratorin classFilterLeafReader.FilterTerms- Throws:
java.io.IOException
-
size
public long size() throws java.io.IOExceptionDescription copied from class:TermsReturns 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:
sizein classFilterLeafReader.FilterTerms- Throws:
java.io.IOException
-
getSumTotalTermFreq
public long getSumTotalTermFreq() throws java.io.IOExceptionDescription copied from class:TermsReturns 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:
getSumTotalTermFreqin classFilterLeafReader.FilterTerms- Throws:
java.io.IOException
-
getSumDocFreq
public long getSumDocFreq() throws java.io.IOExceptionDescription copied from class:TermsReturns 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:
getSumDocFreqin classFilterLeafReader.FilterTerms- Throws:
java.io.IOException
-
getDocCount
public int getDocCount() throws java.io.IOExceptionDescription copied from class:TermsReturns 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:
getDocCountin classFilterLeafReader.FilterTerms- Throws:
java.io.IOException
-
-