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

Method size

basex-core/src/main/java/org/basex/data/Data.java:351–353  ·  view source on GitHub ↗

Returns the size value (number of descendant table entries). @param pre PRE value @param kind node kind @return size value

(final int pre, final int kind)

Source from the content-addressed store, hash-verified

349 * @return size value
350 */
351 public final int size(final int pre, final int kind) {
352 return kind == ELEM || kind == DOC ? table.read4(pre, 8) : 1;
353 }
354
355 /**
356 * Returns the number of attributes plus 1.

Callers 15

insertTextMethod · 0.95
insertElementMethod · 0.95
simpleNodeDeleteMethod · 0.95
cascadingDeleteMethod · 0.95
cascadingDelete2Method · 0.95
deleteAttributeMethod · 0.95
addAttributeMethod · 0.95
listResourcesMethod · 0.95
runMethod · 0.95
atomMethod · 0.95
updateMethod · 0.95
replaceMethod · 0.95

Calls 2

read4Method · 0.45
write4Method · 0.45

Tested by 8

insertTextMethod · 0.76
insertElementMethod · 0.76
simpleNodeDeleteMethod · 0.76
cascadingDeleteMethod · 0.76
cascadingDelete2Method · 0.76
deleteAttributeMethod · 0.76
addAttributeMethod · 0.76
toValueMethod · 0.76