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

Method item

basex-core/src/main/java/org/basex/query/func/ft/FtCount.java:16–27  ·  view source on GitHub ↗
(final QueryContext qc, final InputInfo ii)

Source from the content-addressed store, hash-verified

14 */
15public final class FtCount extends FtAccessFn {
16 @Override
17 public Item item(final QueryContext qc, final InputInfo ii) throws QueryException {
18 final FTPosData tmp = qc.ftPosData;
19 qc.ftPosData = new FTPosData();
20 final Iter nodes = arg(0).unwrappedIter(qc);
21 for(Item item; (item = qc.next(nodes)) != null;) {
22 toDBNode(item, true);
23 }
24 final int size = qc.ftPosData.size();
25 qc.ftPosData = tmp;
26 return Itr.get(size);
27 }
28}

Callers

nothing calls this directly

Calls 6

getMethod · 0.95
toDBNodeMethod · 0.80
nextMethod · 0.65
sizeMethod · 0.65
unwrappedIterMethod · 0.45
argMethod · 0.45

Tested by

no test coverage detected