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

Method toString

basex-core/src/main/java/org/basex/index/IndexTree.java:332–348  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

330 }
331
332 @Override
333 public String toString() {
334 final TokenBuilder tb = new TokenBuilder();
335 tb.add("IndexTree[Root: ").addInt(root).add(Prop.NL);
336 final int size = keys.size();
337 for(int c = 0; c < size; c++) {
338 tb.add(" \"").add(keys.get(c)).add("\": ").add("ids");
339 if(tokenize) tb.add("/pos");
340 tb.add(": (").add(Num.toString(ids.get(c))).add(')');
341 final int left = tree.get(c * 3), right = tree.get(c * 3 + 1);
342 if(left >= 0) tb.add(", left:").addInt(left);
343 if(right >= 0) tb.add(", right:").addInt(right);
344 tb.add(Prop.NL);
345 }
346 tb.add("]");
347 return tb.toString();
348 }
349}

Callers

nothing calls this directly

Calls 7

addMethod · 0.95
toStringMethod · 0.95
toStringMethod · 0.95
addMethod · 0.65
addIntMethod · 0.65
sizeMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected