MCPcopy Create free account
hub / github.com/cmu-db/benchbase / set

Method set

src/main/java/com/oltpbenchmark/util/Histogram.java:369–375  ·  view source on GitHub ↗

Set the number of occurrences of this particular value i @param value the value to be added to the histogram

(X value, int i)

Source from the content-addressed store, hash-verified

367 * @param value the value to be added to the histogram
368 */
369 public synchronized void set(X value, int i) {
370 Integer orig = this.get(value);
371 if (orig != null && orig != i) {
372 i = (orig > i ? -1 * (orig - i) : i - orig);
373 }
374 this._put(value, i);
375 }
376
377 /**
378 * Increments the number of occurrences of this particular value i

Callers 7

randomMethod · 0.45
resetMethod · 0.45
rngMethod · 0.45
ZipfMethod · 0.45
fromJSONMethod · 0.45
putMethod · 0.45
readFieldValueMethod · 0.45

Calls 2

getMethod · 0.95
_putMethod · 0.95

Tested by

no test coverage detected