Package org.terrier.structures
Class PropertiesIndex.UpdatingCollectionStatistics
- java.lang.Object
-
- org.terrier.structures.CollectionStatistics
-
- org.terrier.structures.PropertiesIndex.UpdatingCollectionStatistics
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.hadoop.io.Writable
- Enclosing class:
- PropertiesIndex
protected class PropertiesIndex.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, fieldNames, fieldTokens, hasPositions, numberOfDocuments, numberOfFields, numberOfPointers, numberOfTokens, numberOfUniqueTerms
-
-
Constructor Summary
Constructors Constructor Description UpdatingCollectionStatistics(Index index)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description double
getAverageDocumentLength()
Returns the documents' average length.int
getNumberOfDocuments()
Returns the total number of documents in the collection.long
getNumberOfPointers()
Deprecated.long
getNumberOfPostings()
Returns the total number of postings 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.boolean
hasPositions()
Returns true if the inverted index will have position informat-
Methods inherited from class org.terrier.structures.CollectionStatistics
addStatistics, getAverageFieldLengths, getFieldNames, getFieldTokens, getNumberOfFields, readFields, readFieldsV5, recalculateAverageLengths, toString, write
-
-
-
-
Constructor Detail
-
UpdatingCollectionStatistics
public UpdatingCollectionStatistics(Index index)
-
-
Method Detail
-
getAverageDocumentLength
public double getAverageDocumentLength()
Description copied from class:CollectionStatistics
Returns the documents' average length.- Overrides:
getAverageDocumentLength
in classCollectionStatistics
- 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 classCollectionStatistics
- Returns:
- the total number of documents in the collection.
-
getNumberOfPostings
public long getNumberOfPostings()
Description copied from class:CollectionStatistics
Returns the total number of postings in the collection.- Overrides:
getNumberOfPostings
in classCollectionStatistics
- Returns:
- the total number of postings in the collection.
-
getNumberOfPointers
@Deprecated public long getNumberOfPointers()
Deprecated.Description copied from class:CollectionStatistics
Returns the total number of postings in the collection.- Overrides:
getNumberOfPointers
in classCollectionStatistics
- Returns:
- the total number of postings in the collection.
-
getNumberOfTokens
public long getNumberOfTokens()
Description copied from class:CollectionStatistics
Returns the total number of tokens in the collection.- Overrides:
getNumberOfTokens
in classCollectionStatistics
- 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 classCollectionStatistics
- Returns:
- the total number of unique terms in the lexicon.
-
hasPositions
public boolean hasPositions()
Description copied from class:CollectionStatistics
Returns true if the inverted index will have position informat- Overrides:
hasPositions
in classCollectionStatistics
-
-