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

Method count

basex-core/src/main/java/org/basex/util/ft/FTLexer.java:164–172  ·  view source on GitHub ↗

Returns total number of tokens. @return token count

()

Source from the content-addressed store, hash-verified

162 * @return token count
163 */
164 public int count() {
165 init();
166 int c = 0;
167 while(hasNext()) {
168 nextToken();
169 c++;
170 }
171 return c;
172 }
173
174 @Override
175 public IndexType type() {

Callers

nothing calls this directly

Calls 3

initMethod · 0.95
hasNextMethod · 0.95
nextTokenMethod · 0.95

Tested by

no test coverage detected