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

Method addIds

basex-core/src/main/java/org/basex/index/IndexTree.java:171–176  ·  view source on GitHub ↗

Appends an ID to the ID list specified by n. @param id ID value @param pos token position (only relevant for token index) @param n ID list to append to

(final int id, final int pos, final int n)

Source from the content-addressed store, hash-verified

169 * @param n ID list to append to
170 */
171 private void addIds(final int id, final int pos, final int n) {
172 byte[] vs = ids.get(n);
173 vs = Num.add(vs, id);
174 if(tokenize) vs = Num.add(vs, pos);
175 ids.set(n, vs);
176 }
177
178 /**
179 * Creates a new node.

Callers 1

addMethod · 0.95

Calls 3

addMethod · 0.95
getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected