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

Method item

basex-core/src/main/java/org/basex/query/func/fn/FnAvg.java:17–21  ·  view source on GitHub ↗
(final QueryContext qc, final InputInfo ii)

Source from the content-addressed store, hash-verified

15 */
16public final class FnAvg extends FnSum {
17 @Override
18 public Item item(final QueryContext qc, final InputInfo ii) throws QueryException {
19 final Item item = sum(true, qc);
20 return item != null ? item : Empty.VALUE;
21 }
22
23 @Override
24 protected Expr opt(final CompileContext cc) throws QueryException {

Callers

nothing calls this directly

Calls 1

sumMethod · 0.45

Tested by

no test coverage detected