/** * Copies the given array into this instance. */ public void copyInts(IntsRef ints) { copyInts(ints.ints, ints.offset, ints.length); }
newInput.copyInts(path.input.get()); newInput.append(path.arc.label);
lastInput.copyInts(input);
/** * Copies the given array into this instance. */ public void copyInts(IntsRef ints) { copyInts(ints.ints, ints.offset, ints.length); }
/** * Copies the given array into this instance. */ public void copyInts(IntsRef ints) { copyInts(ints.ints, ints.offset, ints.length); }
/** * Copies the given array into this instance. */ public void copyInts(IntsRef ints) { copyInts(ints.ints, ints.offset, ints.length); }
private void setInnerWeight(IntsRef ref, int offset) { IntsRefBuilder refBuilder = new IntsRefBuilder(); for (int i = offset; i < ref.length; i++) { if (ref.ints[ref.offset + i] == ContextSuggestField.CONTEXT_SEPARATOR) { if (i > 0) { refBuilder.copyInts(ref.ints, ref.offset, i); currentContext = Util.toBytesRef(refBuilder.get(), scratch).utf8ToString(); } else { currentContext = null; } ref.offset = ++i; assert ref.offset < ref.length : "input should not end with the context separator"; if (ref.ints[i] == CompletionAnalyzer.SEP_LABEL) { ref.offset++; assert ref.offset < ref.length : "input should not end with a context separator followed by SEP_LABEL"; } ref.length = ref.length - ref.offset; refBuilder.copyInts(ref.ints, ref.offset, ref.length); innerWeight.setNextMatch(refBuilder.get()); return; } } }
newInput.copyInts(path.input.get()); newInput.append(path.arc.label);
newInput.copyInts(path.input.get()); newInput.append(path.arc.label);
newInput.copyInts(path.input.get()); newInput.append(path.arc.label);
if (nextArc != null) { final IntsRefBuilder newInput = new IntsRefBuilder(); newInput.copyInts(currentInput.get()); newInput.append(t.min); queue.add(new Path<>(t.dest, new FST.Arc<T>() + min; final IntsRefBuilder newInput = new IntsRefBuilder(); newInput.copyInts(currentInput.get()); newInput.append(nextArc.label); queue.add(new Path<>(t.dest, new FST.Arc<T>()
lastInput.copyInts(input);
lastInput.copyInts(input);