|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.labs.minion.retrieval.CollectionStats
public class CollectionStats
A container for collection level statistics that are coelesced out of the statistics associated with a number of partitons.
| Field Summary | |
|---|---|
float |
avgDocLen
The average document length in the collection, in words. |
protected DictionaryIterator |
di
|
int |
maxfdt
The maximum term frequency in the collection. |
int |
maxft
The maximum document frequency in the collection. |
int |
nd
The number of distinct terms in the collection. |
protected int |
nDocs
The total number of documents in the collection. |
protected long |
nTokens
The number of tokens in the collection. |
protected PartitionManager |
pm
A partition manager that will allow us to fetch collection-wide term statistics. |
protected java.util.Map<java.lang.String,TermStatsImpl> |
termStats
A local cache of term stats. |
| Constructor Summary | |
|---|---|
CollectionStats(PartitionManager pm)
|
|
| Method Summary | |
|---|---|
float |
getAvgerageDocumentLength()
|
int |
getNDistinct()
|
int |
getNDocs()
|
long |
getNTokens()
|
TermStatsImpl |
getTermStats(java.lang.String s)
Gets the collection-wide statistics for a given term name. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected PartitionManager pm
protected DictionaryIterator di
protected java.util.Map<java.lang.String,TermStatsImpl> termStats
protected int nDocs
protected long nTokens
public int maxfdt
public int maxft
public int nd
public float avgDocLen
| Constructor Detail |
|---|
public CollectionStats(PartitionManager pm)
| Method Detail |
|---|
public TermStatsImpl getTermStats(java.lang.String s)
public int getNDocs()
public long getNTokens()
public float getAvgerageDocumentLength()
public int getNDistinct()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||