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

Method reset

src/core/MutableDataPoint.java:36–40  ·  view source on GitHub ↗

Resets with a new pair of a timestamp and a double value. @param timestamp A timestamp. @param value A double value.

(final long timestamp, final double value)

Source from the content-addressed store, hash-verified

34 * @param value A double value.
35 */
36 public void reset(final long timestamp, final double value) {
37 this.timestamp = timestamp;
38 this.is_integer = false;
39 this.value = Double.doubleToRawLongBits(value);
40 }
41
42 /**
43 * Resets with a new pair of a timestamp and a long value.

Callers 11

testResetMethod · 0.95
beforeMethod · 0.95
ofDoubleValueMethod · 0.95
ofLongValueMethod · 0.95
populateNextRateMethod · 0.95
nextMethod · 0.45
initializeIfNotDoneMethod · 0.45

Calls 4

timestampMethod · 0.65
isIntegerMethod · 0.65
longValueMethod · 0.65
doubleValueMethod · 0.65

Tested by 6

testResetMethod · 0.76
beforeMethod · 0.76