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

Method uidToLong

src/uid/UniqueId.java:1443–1445  ·  view source on GitHub ↗

Converts a UID to an integer value. The array must be the same length as uid_length or an exception will be thrown. @param uid The hex encoded UID to convert @param uid_length Length the array SHOULD be according to the UID config @return The UID converted to an integer @throws IllegalArgumentExcept

(final String uid, final short uid_length)

Source from the content-addressed store, hash-verified

1441 * @since 2.1
1442 */
1443 public static long uidToLong(final String uid, final short uid_length) {
1444 return uidToLong(stringToUid(uid), uid_length);
1445 }
1446
1447 /**
1448 * Converts a UID to an integer value. The array must be the same length as

Callers 8

uidToLongMethod · 0.95
uidToLongFromStringMethod · 0.95
uidToLongTooLongMethod · 0.95
uidToLongTooShortMethod · 0.95
uidToLongNullMethod · 0.95
fsckMethod · 0.95
getScannerMethod · 0.95
getScannerMethod · 0.95

Calls 2

stringToUidMethod · 0.95
getLongMethod · 0.45

Tested by 5

uidToLongMethod · 0.76
uidToLongFromStringMethod · 0.76
uidToLongTooLongMethod · 0.76
uidToLongTooShortMethod · 0.76
uidToLongNullMethod · 0.76