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 doublegetAverageDocumentLength()Returns the documents' average length.intgetNumberOfDocuments()Returns the total number of documents in the collection.longgetNumberOfPointers()Deprecated.longgetNumberOfPostings()Returns the total number of postings in the collection.longgetNumberOfTokens()Returns the total number of tokens in the collection.intgetNumberOfUniqueTerms()Returns the total number of unique terms in the lexicon.booleanhasPositions()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:CollectionStatisticsReturns the documents' average length.- Overrides:
getAverageDocumentLengthin classCollectionStatistics- Returns:
- the average length of the documents in the collection.
-
getNumberOfDocuments
public int getNumberOfDocuments()
Description copied from class:CollectionStatisticsReturns the total number of documents in the collection.- Overrides:
getNumberOfDocumentsin classCollectionStatistics- Returns:
- the total number of documents in the collection.
-
getNumberOfPostings
public long getNumberOfPostings()
Description copied from class:CollectionStatisticsReturns the total number of postings in the collection.- Overrides:
getNumberOfPostingsin classCollectionStatistics- Returns:
- the total number of postings in the collection.
-
getNumberOfPointers
@Deprecated public long getNumberOfPointers()
Deprecated.Description copied from class:CollectionStatisticsReturns the total number of postings in the collection.- Overrides:
getNumberOfPointersin classCollectionStatistics- Returns:
- the total number of postings in the collection.
-
getNumberOfTokens
public long getNumberOfTokens()
Description copied from class:CollectionStatisticsReturns the total number of tokens in the collection.- Overrides:
getNumberOfTokensin classCollectionStatistics- Returns:
- the total number of tokens in the collection.
-
getNumberOfUniqueTerms
public int getNumberOfUniqueTerms()
Description copied from class:CollectionStatisticsReturns the total number of unique terms in the lexicon.- Overrides:
getNumberOfUniqueTermsin classCollectionStatistics- Returns:
- the total number of unique terms in the lexicon.
-
hasPositions
public boolean hasPositions()
Description copied from class:CollectionStatisticsReturns true if the inverted index will have position informat- Overrides:
hasPositionsin classCollectionStatistics
-
-