public class MemoryCollectionStatistics extends CollectionStatistics implements Serializable
averageDocumentLength, avgFieldLengths, fieldTokens, numberOfDocuments, numberOfFields, numberOfPointers, numberOfTokens, numberOfUniqueTerms
Constructor and Description |
---|
MemoryCollectionStatistics(int numDocs,
int numTerms,
long numTokens,
long numPointers,
long[] fieldTokens)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
relcaluate()
Relcaluate average lengths.
|
void |
update(int docs,
int tokens,
int terms)
Increment doc, token and pointers counters.
|
void |
updateFields(long[] ftokens)
Increment field tokens.
|
void |
updateUniqueTerms(int numTerms)
Increment unique terms.
|
addStatistics, getAverageDocumentLength, getAverageFieldLengths, getFieldTokens, getNumberOfDocuments, getNumberOfFields, getNumberOfPointers, getNumberOfTokens, getNumberOfUniqueTerms, readFields, relcaluateAverageLengths, toString, write
public MemoryCollectionStatistics(int numDocs, int numTerms, long numTokens, long numPointers, long[] fieldTokens)
public void update(int docs, int tokens, int terms)
public void updateUniqueTerms(int numTerms)
public void updateFields(long[] ftokens)
public void relcaluate()
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow