Package org.apache.lucene.tests.util.fst
Class FSTTester<T>
java.lang.Object
org.apache.lucene.tests.util.fst.FSTTester<T>
Helper class to test FSTs.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Holds one input/output pair. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doTest
(boolean testPruning) doTest
(int prune1, int prune2, boolean allowRandomSuffixSharing) 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
static IntsRef
static IntsRef
toIntsRef
(String s, int inputMode, IntsRefBuilder ir)
-
Field Details
-
random
-
pairs
-
inputMode
public final int inputMode -
outputs
-
dir
-
nodeCount
public long nodeCount -
arcCount
public long arcCount
-
-
Constructor Details
-
FSTTester
-
-
Method Details
-
getRandomString
[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. -
simpleRandomString
-
toIntsRef
-
toIntsRef
-
doTest
- Throws:
IOException
-
doTest
- Throws:
IOException
-
outputsEqual
-