public class CollectionStatistics extends Object
Constructor and Description |
---|
CollectionStatistics(String field,
long maxDoc,
long docCount,
long sumTotalTermFreq,
long sumDocFreq) |
Modifier and Type | Method and Description |
---|---|
long |
docCount()
returns the total number of documents that
have at least one term for this field.
|
String |
field()
returns the field name
|
long |
maxDoc()
returns the total number of documents, regardless of
whether they all contain values for this field.
|
long |
sumDocFreq()
returns the total number of postings for this field
|
long |
sumTotalTermFreq()
returns the total number of tokens for this field
|
public CollectionStatistics(String field, long maxDoc, long docCount, long sumTotalTermFreq, long sumDocFreq)
public final String field()
public final long maxDoc()
IndexReader.maxDoc()
public final long docCount()
Terms.getDocCount()
public final long sumTotalTermFreq()
Terms.getSumTotalTermFreq()
public final long sumDocFreq()
Terms.getSumDocFreq()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.