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

Method contains

basex-core/src/main/java/org/basex/index/IndexNames.java:73–78  ·  view source on GitHub ↗

Checks if the name of the addressed database entry is to be indexed. @param pre PRE value @param text text flag @return result of check

(final int pre, final boolean text)

Source from the content-addressed store, hash-verified

71 * @return result of check
72 */
73 public boolean contains(final int pre, final boolean text) {
74 final byte[][] qname = text ? data.qname(data.parent(pre, Data.TEXT), Data.ELEM) :
75 data.qname(pre, Data.ATTR);
76 qname[0] = local(qname[0]);
77 return contains(qname);
78 }
79
80 /**
81 * Checks if the specified name is an index candidate.

Callers 1

ValueCacheMethod · 0.95

Calls 8

isEmptyMethod · 0.95
sizeMethod · 0.65
nameMethod · 0.65
eqMethod · 0.65
qnameMethod · 0.45
parentMethod · 0.45
localMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected