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

Method put

basex-core/src/main/java/org/basex/util/hash/TokenSet.java:110–113  ·  view source on GitHub ↗

Stores the specified key and returns its index. @param key key to be added @return index of stored key (larger than 0)

(final byte[] key)

Source from the content-addressed store, hash-verified

108 * @return index of stored key (larger than {@code 0})
109 */
110 public final int put(final byte[] key) {
111 final int index = store(key);
112 return Math.abs(index);
113 }
114
115 /**
116 * Checks if the set contains the specified key.

Callers 5

functionMethod · 0.95
objectMethod · 0.95
idsMethod · 0.95
tokensMethod · 0.95
stripNamespacesMethod · 0.95

Calls 2

storeMethod · 0.95
absMethod · 0.45

Tested by

no test coverage detected