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

Method getUIDAsync

src/core/TSDB.java:696–710  ·  view source on GitHub ↗

Attempts to find the UID matching a given name @param type The type of UID @param name The name to search for @throws IllegalArgumentException if the type is not valid @throws NoSuchUniqueName if the name was not found @since 2.1

(final UniqueIdType type, final String name)

Source from the content-addressed store, hash-verified

694 * @since 2.1
695 */
696 public Deferred<byte[]> getUIDAsync(final UniqueIdType type, final String name) {
697 if (name == null || name.isEmpty()) {
698 throw new IllegalArgumentException("Missing UID name");
699 }
700 switch (type) {
701 case METRIC:
702 return metrics.getIdAsync(name);
703 case TAGK:
704 return tag_names.getIdAsync(name);
705 case TAGV:
706 return tag_values.getIdAsync(name);
707 default:
708 throw new IllegalArgumentException("Unrecognized UID type");
709 }
710 }
711
712 /**
713 * Verifies that the data and UID tables exist in HBase and optionally the

Callers 7

getUIDMethod · 0.95
callMethod · 0.80
resolveUIDsMethod · 0.80
resolveTagkNameMethod · 0.80
resolveTagsMethod · 0.80
tsuidFromMetricMethod · 0.80
resolveMetricMethod · 0.80

Calls 2

isEmptyMethod · 0.80
getIdAsyncMethod · 0.80

Tested by

no test coverage detected