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, write
public Index.UpdatingCollectionStatistics(Index index)
public double getAverageDocumentLength()
CollectionStatistics
getAverageDocumentLength
in class CollectionStatistics
public int getNumberOfDocuments()
CollectionStatistics
getNumberOfDocuments
in class CollectionStatistics
public long getNumberOfPointers()
CollectionStatistics
getNumberOfPointers
in class CollectionStatistics
public long getNumberOfTokens()
CollectionStatistics
getNumberOfTokens
in class CollectionStatistics
public int getNumberOfUniqueTerms()
CollectionStatistics
getNumberOfUniqueTerms
in class CollectionStatistics
Terrier 4.0. Copyright © 2004-2014 University of Glasgow