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

Method toString

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

Source from the content-addressed store, hash-verified

332 }
333
334 @Override
335 public String toString() {
336 final Table table = new Table();
337 table.header.add(TABLEPRE);
338 table.header.add(TABLECON);
339
340 final TokenList tl = new TokenList();
341 final int ds = paths().size();
342 for(int d = 0; d < ds; d++) {
343 final int doc = docList != null ? docList.get(d) : 0;
344 final byte[] path = pathList != null ? pathList.get(d) : EMPTY;
345 table.contents.add(tl.add(doc).add(path));
346 }
347 return table.toString();
348 }
349}

Callers

nothing calls this directly

Calls 6

pathsMethod · 0.95
addMethod · 0.95
toStringMethod · 0.95
addMethod · 0.65
sizeMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected