Package org.apache.lucene.search
Class CollectionStatistics
- java.lang.Object
-
- org.apache.lucene.search.CollectionStatistics
-
public class CollectionStatistics extends java.lang.ObjectContains statistics for a collection (field)
-
-
Constructor Summary
Constructors Constructor Description CollectionStatistics(java.lang.String field, long maxDoc, long docCount, long sumTotalTermFreq, long sumDocFreq)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longdocCount()returns the total number of documents that have at least one term for this field.java.lang.Stringfield()returns the field namelongmaxDoc()returns the total number of documents, regardless of whether they all contain values for this field.longsumDocFreq()returns the total number of postings for this fieldlongsumTotalTermFreq()returns the total number of tokens for this field
-
-
-
Method Detail
-
field
public final java.lang.String field()
returns the field name
-
maxDoc
public final long maxDoc()
returns the total number of documents, regardless of whether they all contain values for this field.- See Also:
IndexReader.maxDoc()
-
docCount
public final long docCount()
returns the total number of documents that have at least one term for this field.- See Also:
Terms.getDocCount()
-
sumTotalTermFreq
public final long sumTotalTermFreq()
returns the total number of tokens for this field- See Also:
Terms.getSumTotalTermFreq()
-
sumDocFreq
public final long sumDocFreq()
returns the total number of postings for this field- See Also:
Terms.getSumDocFreq()
-
-