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

Method assign

basex-core/src/main/java/org/basex/util/ft/FTOpt.java:42–52  ·  view source on GitHub ↗

Adopts the options of the specified argument. @param opt parent full-text options @return self reference

(final FTOpt opt)

Source from the content-addressed store, hash-verified

40 * @return self reference
41 */
42 public FTOpt assign(final FTOpt opt) {
43 opt.map.forEach((key, value) -> map.computeIfAbsent(key, k -> value));
44 if(cs == null) cs = opt.cs;
45 if(sw == null) sw = opt.sw;
46 if(sd == null) sd = opt.sd;
47 if(ln == null) ln = opt.ln;
48 if(th == null) th = opt.th;
49 else if(opt.th != null) th.merge(opt.th);
50 if(errors == -1) errors = opt.errors;
51 return this;
52 }
53
54 /**
55 * Assigns the full-text options from the specified database metadata.

Callers 3

optionsMethod · 0.45
copyMethod · 0.45
QT3EnvMethod · 0.45

Calls 4

setMethod · 0.95
forEachMethod · 0.45
computeIfAbsentMethod · 0.45
mergeMethod · 0.45

Tested by 1

QT3EnvMethod · 0.36