MCPcopy Create free account
hub / github.com/OpenTSDB/opentsdb / parseValue

Method parseValue

src/core/Internal.java:392–400  ·  view source on GitHub ↗

Returns the value of the cell as a Number for passing to a StringBuffer @return The numeric value of the cell @throws IllegalDataException if the value is invalid

()

Source from the content-addressed store, hash-verified

390 * @throws IllegalDataException if the value is invalid
391 */
392 public Number parseValue() {
393 if (isInteger()) {
394 return extractIntegerValue(value, 0,
395 (byte)getFlagsFromQualifier(qualifier));
396 } else {
397 return extractFloatingPointValue(value, 0,
398 (byte)getFlagsFromQualifier(qualifier));
399 }
400 }
401
402 /**
403 * Returns the Unix epoch timestamp in milliseconds

Callers 2

callMethod · 0.95
appendImportCellMethod · 0.80

Calls 4

isIntegerMethod · 0.95
getFlagsFromQualifierMethod · 0.80
extractIntegerValueMethod · 0.45

Tested by

no test coverage detected