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

Method absoluteTimestamp

src/core/Internal.java:417–424  ·  view source on GitHub ↗

Returns the timestamp as stored in HBase for the cell, i.e. in seconds or milliseconds @param base_time Row key base time to add the offset to @return Unix epoch timestamp

(final long base_time)

Source from the content-addressed store, hash-verified

415 * @return Unix epoch timestamp
416 */
417 public long absoluteTimestamp(final long base_time) {
418 final long timestamp = getTimestampFromQualifier(qualifier, base_time);
419 if (inMilliseconds(qualifier)) {
420 return timestamp;
421 } else {
422 return timestamp / 1000;
423 }
424 }
425
426 /** @return Whether or not the value is an integer */
427 public boolean isInteger() {

Callers 2

appendRawCellMethod · 0.80
appendImportCellMethod · 0.80

Calls 2

inMillisecondsMethod · 0.45

Tested by

no test coverage detected