org.terrier.structures
Class Index.UpdatingCollectionStatistics

java.lang.Object
  extended by org.terrier.structures.CollectionStatistics
      extended by org.terrier.structures.Index.UpdatingCollectionStatistics
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Index

protected class Index.UpdatingCollectionStatistics
extends CollectionStatistics

This collection statistics parses the associated index properties for each call. It doesnt support fields.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.terrier.structures.CollectionStatistics
averageDocumentLength, avgFieldLengths, fieldTokens, numberOfDocuments, numberOfFields, numberOfPointers, numberOfTokens, numberOfUniqueTerms
 
Constructor Summary
Index.UpdatingCollectionStatistics(Index index)
           
 
Method Summary
 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.
 
Methods inherited from class org.terrier.structures.CollectionStatistics
addStatistics, getAverageFieldLengths, getFieldTokens, getNumberOfFields, relcaluateAverageLengths
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Index.UpdatingCollectionStatistics

public Index.UpdatingCollectionStatistics(Index index)
Method Detail

getAverageDocumentLength

public double getAverageDocumentLength()
Description copied from class: CollectionStatistics
Returns the documents' average length.

Overrides:
getAverageDocumentLength in class CollectionStatistics
Returns:
the average length of the documents in the collection.

getNumberOfDocuments

public int getNumberOfDocuments()
Description copied from class: CollectionStatistics
Returns the total number of documents in the collection.

Overrides:
getNumberOfDocuments in class CollectionStatistics
Returns:
the total number of documents in the collection

getNumberOfPointers

public long getNumberOfPointers()
Description copied from class: CollectionStatistics
Returns the total number of pointers in the collection.

Overrides:
getNumberOfPointers in class CollectionStatistics
Returns:
the total number of pointers in the collection

getNumberOfTokens

public long getNumberOfTokens()
Description copied from class: CollectionStatistics
Returns the total number of tokens in the collection.

Overrides:
getNumberOfTokens in class CollectionStatistics
Returns:
the total number of tokens in the collection

getNumberOfUniqueTerms

public int getNumberOfUniqueTerms()
Description copied from class: CollectionStatistics
Returns the total number of unique terms in the lexicon.

Overrides:
getNumberOfUniqueTerms in class CollectionStatistics
Returns:
the total number of unique terms in the lexicon


Terrier 3.5. Copyright © 2004-2011 University of Glasgow