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

Method info

basex-core/src/main/java/org/basex/index/value/MemValues.java:105–119  ·  view source on GitHub ↗
(final MainOptions options)

Source from the content-addressed store, hash-verified

103 }
104
105 @Override
106 public byte[] info(final MainOptions options) {
107 final TokenBuilder tb = new TokenBuilder();
108 tb.add(LI_STRUCTURE).add(HASH).add(NL);
109 tb.add(LI_NAMES).add(data.meta.names(type)).add(NL);
110
111 final IndexStats stats = new IndexStats(options.get(MainOptions.MAXSTAT));
112 final int s = values.size();
113 for(int p = 1; p <= s; p++) {
114 final int oc = lenList.get(p);
115 if(oc > 0 && stats.adding(oc)) stats.add(values.key(p), oc);
116 }
117 stats.print(tb);
118 return tb.finish();
119 }
120
121 @Override
122 public int size() {

Callers

nothing calls this directly

Calls 10

addMethod · 0.95
addingMethod · 0.95
addMethod · 0.95
printMethod · 0.95
finishMethod · 0.95
addMethod · 0.65
getMethod · 0.65
sizeMethod · 0.65
namesMethod · 0.45
keyMethod · 0.45

Tested by

no test coverage detected