|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.obsearch.stats.Statistics
public class Statistics
Statistics gathered during the execution of a program.
Constructor Summary | |
---|---|
Statistics()
|
Method Summary | |
---|---|
void |
addExtraStats(String name,
double value)
Add values to a stats bin, each value added will be considered as a unit and median, std. |
long |
getBucketsRead()
|
long |
getDataRead()
|
long |
getDiskAccessCount()
|
long |
getDistanceCount()
|
int |
getExtra(String key)
Increment an extra value. |
long |
getQueryCount()
|
long |
getSmapCount()
|
hep.aida.bin.StaticBin1D |
getStats(String name)
|
void |
incBucketsRead()
Increment the # of buckets read. |
void |
incBucketsRead(long x)
Adds x to the current value of bucketsRead . |
void |
incDataRead(long dataRead)
Increment data read |
void |
incDiskAccessCount()
Increment disk access count. |
void |
incDistanceCount()
Increment distance count. |
void |
incDistanceCount(long distance)
Increment distance count by distance. |
void |
incExtra(String key)
Increment an extra value. |
void |
incExtra(String key,
int value)
Increment an extra value. |
void |
incQueryCount()
Increment query count. |
void |
incSmapCount()
Increment smap count. |
void |
incSmapCount(long count)
Increment smap count by count. |
void |
putObjects(String name,
Object stats)
Add arbitrary info. |
void |
putStats(String name,
hep.aida.bin.StaticBin1D stats)
Add the given set of statistics. |
void |
resetStats()
Reset all the counters to 0. |
void |
setDataRead(long dataRead)
|
void |
setDiskAccessCount(long diskAccessCount)
|
void |
setDistanceCount(long distanceCount)
|
void |
setExtra(String key,
int value)
Increment an extra value. |
void |
setQueryCount(long queryCount)
|
void |
setSmapCount(long smapCount)
|
String |
toString()
|
String |
toStringSummary()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Statistics()
Method Detail |
---|
public void incBucketsRead(long x)
bucketsRead
.
x
- public void incBucketsRead()
public void incExtra(String key)
key
- public void incExtra(String key, int value)
key
- public void setExtra(String key, int value)
key
- public int getExtra(String key)
key
- public void incDistanceCount(long distance)
public void incDistanceCount()
public void incSmapCount()
public void incSmapCount(long count)
count
- the amount that will be increasedpublic void incDiskAccessCount()
public void incQueryCount()
public void incDataRead(long dataRead)
dataRead
- The amount read.public long getDistanceCount()
public void setDistanceCount(long distanceCount)
distanceCount
- the distanceCount to setpublic long getSmapCount()
public void setSmapCount(long smapCount)
smapCount
- the smapCount to setpublic long getDiskAccessCount()
public void setDiskAccessCount(long diskAccessCount)
diskAccessCount
- the diskAccessCount to setpublic long getQueryCount()
public void setQueryCount(long queryCount)
queryCount
- the queryCount to setpublic long getDataRead()
public void setDataRead(long dataRead)
dataRead
- the dataRead to setpublic void resetStats()
public void putStats(String name, hep.aida.bin.StaticBin1D stats)
name
- Name of the statisticsstats
- The stats.public hep.aida.bin.StaticBin1D getStats(String name)
public void addExtraStats(String name, double value)
name
- Name of the statvalue
- Value to addpublic void putObjects(String name, Object stats)
name
- Name of the statisticsstats
- The stats.public String toStringSummary()
public long getBucketsRead()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |