@Test public void testInMemorySorter() throws Exception { check(new InMemorySorter(BytesRef.getUTF8SortedAsUnicodeComparator())); }
/** * Creates an {@link FSTCompletion} with default options: 10 buckets, exact match * promoted to first position and {@link InMemorySorter} with a comparator obtained from * {@link BytesRef#getUTF8SortedAsUnicodeComparator()}. */ public FSTCompletionBuilder() { this(DEFAULT_BUCKETS, new InMemorySorter(BytesRef.getUTF8SortedAsUnicodeComparator()), Integer.MAX_VALUE); }