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

Method setParent

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

Sets the parent node. @param nd current node @param val parent node

(final int nd, final int val)

Source from the content-addressed store, hash-verified

248 * @param val parent node
249 */
250 private void setParent(final int nd, final int val) {
251 tree.set((nd << 1) + nd + 2, val);
252 }
253
254 /**
255 * Adjusts the tree balance.

Callers 3

rotateLeftMethod · 0.95
rotateRightMethod · 0.95
mainMethod · 0.80

Calls 1

setMethod · 0.65

Tested by

no test coverage detected