Class FSTTester<T>


  • public class FSTTester<T>
    extends Object
    Helper class to test FSTs.
    • 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; consider RandomStrings to generate random strings.
      • simpleRandomString

        public static String simpleRandomString​(Random r)
      • toIntsRef

        public static IntsRef toIntsRef​(String s,
                                        int inputMode)
      • doTest

        public FST<T> doTest​(int prune1,
                             int prune2,
                             boolean allowRandomSuffixSharing)
                      throws IOException
        Throws:
        IOException
      • outputsEqual

        protected boolean outputsEqual​(T a,
                                       T b)