MCPcopy
hub / github.com/OpenTSDB/opentsdb / getAnnotation

Method getAnnotation

src/meta/Annotation.java:231–234  ·  view source on GitHub ↗

Attempts to fetch a global annotation from storage @param tsdb The TSDB to use for storage access @param start_time The start time as a Unix epoch timestamp @return A valid annotation object if found, null if not

(final TSDB tsdb, 
      final long start_time)

Source from the content-addressed store, hash-verified

229 * @return A valid annotation object if found, null if not
230 */
231 public static Deferred<Annotation> getAnnotation(final TSDB tsdb,
232 final long start_time) {
233 return getAnnotation(tsdb, (byte[])null, start_time);
234 }
235
236 /**
237 * Attempts to fetch a global or local annotation from storage

Callers 11

getAnnotationMethod · 0.95
getAnnotationSaltedMethod · 0.95
getAnnotationGlobalMethod · 0.95
getAnnotationNotFoundMethod · 0.95
syncToStorageMethod · 0.95
callMethod · 0.95
fetchSingleAnnotationMethod · 0.95

Calls 8

stringToUidMethod · 0.95
getRowKeyMethod · 0.95
getQualifierMethod · 0.95
isEmptyMethod · 0.80
dataTableMethod · 0.80
qualifierMethod · 0.45
getMethod · 0.45
getClientMethod · 0.45

Tested by 8

getAnnotationMethod · 0.76
getAnnotationSaltedMethod · 0.76
getAnnotationGlobalMethod · 0.76
getAnnotationNotFoundMethod · 0.76