Package org.apache.lucene.search
Class CollectionStatistics
java.lang.Object
org.apache.lucene.search.CollectionStatistics
Contains statistics for a collection (field)
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionStatistics
(String field, long maxDoc, long docCount, long sumTotalTermFreq, long sumDocFreq) -
Method Summary
Modifier and TypeMethodDescriptionfinal long
docCount()
returns the total number of documents that have at least one term for this field.final String
field()
returns the field namefinal long
maxDoc()
returns the total number of documents, regardless of whether they all contain values for this field.final long
returns the total number of postings for this fieldfinal long
returns the total number of tokens for this field
-
Constructor Details
-
CollectionStatistics
public CollectionStatistics(String field, long maxDoc, long docCount, long sumTotalTermFreq, long sumDocFreq)
-
-
Method Details
-
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:
-
docCount
public final long docCount()returns the total number of documents that have at least one term for this field.- See Also:
-
sumTotalTermFreq
public final long sumTotalTermFreq()returns the total number of tokens for this field- See Also:
-
sumDocFreq
public final long sumDocFreq()returns the total number of postings for this field- See Also:
-