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 classFSTTester.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 StringgetRandomString(Random random)[LUCENE-9600] This was made public because a misc module test depends on it.protected booleanoutputsEqual(T a, T b)static StringsimpleRandomString(Random r)static IntsReftoIntsRef(String s, int inputMode)static IntsReftoIntsRef(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; considerRandomStringsto generate random strings.
-
toIntsRef
public static IntsRef toIntsRef(String s, int inputMode, IntsRefBuilder ir)
-
doTest
public FST<T> doTest() throws IOException
- Throws:
IOException
-
-