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

Method addNewIds

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

Creates a new ID list and adds an ID. @param id ID value @param pos token position (only relevant for token index)

(final int id, final int pos)

Source from the content-addressed store, hash-verified

157 * @param pos token position (only relevant for token index)
158 */
159 private void addNewIds(final int id, final int pos) {
160 byte[] vs = Num.newNum(id);
161 if(tokenize) vs = Num.add(vs, pos);
162 ids.add(vs);
163 }
164
165 /**
166 * Appends an ID to the ID list specified by n.

Callers 2

addMethod · 0.95
newNodeMethod · 0.95

Calls 3

newNumMethod · 0.95
addMethod · 0.95
addMethod · 0.65

Tested by

no test coverage detected