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

Method get

basex-core/src/main/java/org/basex/query/expr/SimpleMap.java:50–54  ·  view source on GitHub ↗

Creates a new, optimized map expression. @param cc compilation context @param info input info (can be null) @param exprs expressions @return list, single expression or empty sequence @throws QueryException query exception

(final CompileContext cc, final InputInfo info, final Expr... exprs)

Source from the content-addressed store, hash-verified

48 * @throws QueryException query exception
49 */
50 public static Expr get(final CompileContext cc, final InputInfo info, final Expr... exprs)
51 throws QueryException {
52 final int el = exprs.length;
53 return el > 1 ? new CachedMap(info, exprs).optimize(cc) : el > 0 ? exprs[0] : Empty.VALUE;
54 }
55
56 @Override
57 public final Expr optimize(final CompileContext cc) throws QueryException {

Callers 13

simplifyForMethod · 0.95
optimizeMethod · 0.95
removeMethod · 0.95
flattenMapsMethod · 0.95
mergeMethod · 0.95
mergePathsMethod · 0.95
dropOpsMethod · 0.95
simplifyForMethod · 0.95
flattenEbvMethod · 0.95
optMethod · 0.95
toMapMethod · 0.95
inlineMethod · 0.95

Calls 1

optimizeMethod · 0.45

Tested by

no test coverage detected