Package org.apache.solr.spelling
Class SampleComparator
java.lang.Object
org.apache.solr.spelling.SampleComparator
- All Implemented Interfaces:
Comparator<org.apache.lucene.search.spell.SuggestWord>
public class SampleComparator
extends Object
implements Comparator<org.apache.lucene.search.spell.SuggestWord>
Comparator for testing purposes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(org.apache.lucene.search.spell.SuggestWord suggestWord, org.apache.lucene.search.spell.SuggestWord suggestWord1) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
SampleComparator
public SampleComparator()
-
-
Method Details
-
compare
public int compare(org.apache.lucene.search.spell.SuggestWord suggestWord, org.apache.lucene.search.spell.SuggestWord suggestWord1) - Specified by:
comparein interfaceComparator<org.apache.lucene.search.spell.SuggestWord>
-