MCPcopy Create free account
hub / github.com/BaseXdb/basex / uriId

Method uriId

basex-core/src/main/java/org/basex/data/Namespaces.java:114–116  ·  view source on GitHub ↗

Returns the ID of the specified namespace URI. @param uri namespace URI @return ID, or 0 if no entry is found

(final byte[] uri)

Source from the content-addressed store, hash-verified

112 * @return ID, or {@code 0} if no entry is found
113 */
114 public int uriId(final byte[] uri) {
115 return uris.index(uri);
116 }
117
118 /**
119 * Returns the common default namespace of all documents of the database.

Callers 1

uriIdForPrefixMethod · 0.95

Calls 3

uriMethod · 0.95
parentMethod · 0.95
indexMethod · 0.65

Tested by

no test coverage detected