mirror of https://github.com/apache/lucene.git
LUCENE-6112: Fix compile error in FST package example code
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1645548 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
85a43a77a9
commit
692826b906
|
@ -380,6 +380,9 @@ Documentation
|
|||
|
||||
* LUCENE-6057: Improve Sort(SortField) docs (Martin Braun via Mike McCandless)
|
||||
|
||||
* LUCENE-6112: Fix compile error in FST package example code
|
||||
(Tomoko Uchida via Koji Sekiguchi)
|
||||
|
||||
Tests
|
||||
|
||||
* LUCENE-5957: Add option for tests to not randomize codec
|
||||
|
|
|
@ -46,7 +46,7 @@ FST Construction example:
|
|||
PositiveIntOutputs outputs = PositiveIntOutputs.getSingleton();
|
||||
Builder<Long> builder = new Builder<Long>(INPUT_TYPE.BYTE1, outputs);
|
||||
BytesRef scratchBytes = new BytesRef();
|
||||
IntsRef scratchInts = new IntsRef();
|
||||
IntsRefBuilder scratchInts = new IntsRefBuilder();
|
||||
for (int i = 0; i < inputValues.length; i++) {
|
||||
scratchBytes.copyChars(inputValues[i]);
|
||||
builder.add(Util.toIntsRef(scratchBytes, scratchInts), outputValues[i]);
|
||||
|
|
Loading…
Reference in New Issue