protected class Index.UpdatingCollectionStatistics extends CollectionStatistics
averageDocumentLength, avgFieldLengths, fieldTokens, numberOfDocuments, numberOfFields, numberOfPointers, numberOfTokens, numberOfUniqueTerms| Constructor and Description |
|---|
Index.UpdatingCollectionStatistics(Index index) |
| Modifier and Type | Method and Description |
|---|---|
double |
getAverageDocumentLength()
Returns the documents' average length.
|
int |
getNumberOfDocuments()
Returns the total number of documents in the collection.
|
long |
getNumberOfPointers()
Returns the total number of pointers in the collection.
|
long |
getNumberOfTokens()
Returns the total number of tokens in the collection.
|
int |
getNumberOfUniqueTerms()
Returns the total number of unique terms in the lexicon.
|
addStatistics, getAverageFieldLengths, getFieldTokens, getNumberOfFields, readFields, relcaluateAverageLengths, toString, writepublic Index.UpdatingCollectionStatistics(Index index)
public double getAverageDocumentLength()
CollectionStatisticsgetAverageDocumentLength in class CollectionStatisticspublic int getNumberOfDocuments()
CollectionStatisticsgetNumberOfDocuments in class CollectionStatisticspublic long getNumberOfPointers()
CollectionStatisticsgetNumberOfPointers in class CollectionStatisticspublic long getNumberOfTokens()
CollectionStatisticsgetNumberOfTokens in class CollectionStatisticspublic int getNumberOfUniqueTerms()
CollectionStatisticsgetNumberOfUniqueTerms in class CollectionStatisticsTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow