|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.labs.minion.QueryStats
public class QueryStats
A class to hold statistics generated during a single or many queries.
| Field Summary | |
|---|---|
int |
dictCacheHits
The number of main dictionary cache hits during the query. |
int |
dictCacheMisses
The number of main dictionary cache misses during the query. |
int |
dictLookups
The number of main dictionary lookups done during the query. |
NanoWatch |
dictLookupW
A stopwatch that accumulates the time required for dictionary lookups during the query. |
NanoWatch |
intersectW
A stopwatch that accumulates the time required for intersecting postings during the query. |
NanoWatch |
normW
A stopwatch that accumulates the time spent normalizing document scores. |
NanoWatch |
piW
A stopwatch that accumulates the time spent iterating through postings, no matter what the reason. |
long |
postingsSize
The total size (in bytes) of postings read during the query. |
NanoWatch |
postReadW
A stopwatch that accumulates the time required for reading postings during the query. |
NanoWatch |
postSortW
A stopwatch that accumulates the time spent sorting postings. |
NanoWatch |
queryW
A stopwatch that accumulates the total query time. |
int |
termCacheHits
The number of term cache hits. |
int |
termCacheMisses
The number of term cache misses. |
NanoWatch |
termCacheW
A stopwatch that accumulates the time spent getting entries for the term cache. |
NanoWatch |
unionW
A stopwatch that accumulates the time required for unioning postings during the query. |
| Constructor Summary | |
|---|---|
QueryStats()
|
|
| Method Summary | |
|---|---|
void |
accumulate(QueryStats qs)
Accumulates one set of query statistics into this one, so that we can gather stats across a number of queries. |
java.lang.String |
dump()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int dictLookups
public int dictCacheHits
public int dictCacheMisses
public int termCacheHits
public int termCacheMisses
public long postingsSize
public NanoWatch queryW
public NanoWatch dictLookupW
public NanoWatch termCacheW
public NanoWatch postReadW
public NanoWatch unionW
public NanoWatch intersectW
public NanoWatch piW
public NanoWatch postSortW
public NanoWatch normW
| Constructor Detail |
|---|
public QueryStats()
| Method Detail |
|---|
public void accumulate(QueryStats qs)
qs - a set of query statistics to add to this one.public java.lang.String dump()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||