Package org.apache.lucene.tests.util.fst
Class FSTTester<T>
- java.lang.Object
-
- org.apache.lucene.tests.util.fst.FSTTester<T>
-
public class FSTTester<T> extends Object
Helper class to test FSTs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FSTTester.InputOutput<T>
Holds one input/output pair.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FST<T>
doTest()
static String
getRandomString(Random random)
[LUCENE-9600] This was made public because a misc module test depends on it.protected boolean
outputsEqual(T a, T b)
static String
simpleRandomString(Random r)
static IntsRef
toIntsRef(String s, int inputMode)
static IntsRef
toIntsRef(String s, int inputMode, IntsRefBuilder ir)
-
-
-
Method Detail
-
getRandomString
public static String getRandomString(Random random)
[LUCENE-9600] This was made public because a misc module test depends on it. It is not recommended for generic usecase; considerRandomStrings
to generate random strings.
-
toIntsRef
public static IntsRef toIntsRef(String s, int inputMode, IntsRefBuilder ir)
-
doTest
public FST<T> doTest() throws IOException
- Throws:
IOException
-
-