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

Method getTimestampFromQualifier

src/core/Internal.java:737–740  ·  view source on GitHub ↗

Returns the absolute timestamp of a data point qualifier in milliseconds @param qualifier The qualifier to parse @param base_time The base time, in seconds, from the row key @return The absolute timestamp in milliseconds @throws IllegalArgumentException if the qualifier is null or empty @since 2.0

(final byte[] qualifier, 
      final long base_time)

Source from the content-addressed store, hash-verified

735 * @since 2.0
736 */
737 public static long getTimestampFromQualifier(final byte[] qualifier,
738 final long base_time) {
739 return (base_time * 1000) + getOffsetFromQualifier(qualifier);
740 }
741
742 /**
743 * Returns the absolute timestamp of a data point qualifier in milliseconds

Callers 11

fsckRowMethod · 0.95
appendAnnotationMethod · 0.95
timestampMethod · 0.95
peekNextTimestampMethod · 0.95
timestampMethod · 0.95
timestampMethod · 0.45
absoluteTimestampMethod · 0.45
callMethod · 0.45

Calls 1