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

Method opt

basex-core/src/main/java/org/basex/query/func/db/DbGetId.java:36–47  ·  view source on GitHub ↗
(final CompileContext cc)

Source from the content-addressed store, hash-verified

34 }
35
36 @Override
37 protected final Expr opt(final CompileContext cc) throws QueryException {
38 compileData(cc);
39
40 final Expr nodes = arg(0);
41 final Data data = nodes.data();
42 if(data != null && !data.meta.updindex && !(this instanceof DbGetPre)) {
43 // no ID-PRE mapping: work with PRE values
44 return cc.function(_DB_GET_PRE, info, nodes);
45 }
46 return this;
47 }
48
49 @Override
50 public final boolean ddo() {

Callers

nothing calls this directly

Calls 4

dataMethod · 0.95
compileDataMethod · 0.80
argMethod · 0.45
functionMethod · 0.45

Tested by

no test coverage detected