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

Method getStat

src/stats/QueryStats.java:875–880  ·  view source on GitHub ↗

@return A stat for the overall query or -1 if the stat didn't exist.

(final QueryStat stat)

Source from the content-addressed store, hash-verified

873
874 /** @return A stat for the overall query or -1 if the stat didn't exist. */
875 public long getStat(final QueryStat stat) {
876 if (!overall_stats.containsKey(stat)) {
877 return -1;
878 }
879 return overall_stats.get(stat);
880 }
881
882 /** @return a timed stat for the overall query or NaN if the stat didn't exist */
883 public double getTimeStat(final QueryStat stat) {

Callers 1

getStatMethod · 0.95

Calls 1

getMethod · 0.45

Tested by 1

getStatMethod · 0.76