Adopts the options of the specified argument. @param opt parent full-text options @return self reference
(final FTOpt opt)
| 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. |