MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / addStat

Method addStat

src/stats/QueryStats.java:445–447  ·  view source on GitHub ↗

Add an overall statistic for the query (i.e. not associated with a sub query or scanner) @param name The name of the stat @param value The value to store

(final QueryStat name, final long value)

Source from the content-addressed store, hash-verified

443 * @param value The value to store
444 */
445 public void addStat(final QueryStat name, final long value) {
446 overall_stats.put(name, value);
447 }
448
449 /**
450 * Adds a stat for a sub query, replacing it if it exists. Times must be

Callers 7

getStatMethod · 0.95
aggQueryStatsMethod · 0.95
callMethod · 0.80
callMethod · 0.80
mergeAndReturnResultsMethod · 0.80
mergeAndReturnResultsMethod · 0.80
callMethod · 0.80

Calls 2

putMethod · 0.80
getMethod · 0.45

Tested by 1

getStatMethod · 0.76