Package org.apache.lucene.search.spell
Class SuggestWordFrequencyComparator
java.lang.Object
org.apache.lucene.search.spell.SuggestWordFrequencyComparator
- All Implemented Interfaces:
Comparator<SuggestWord>
Frequency first, then score.
-
Constructor Summary
ConstructorDescriptionCreates a new comparator that will compare bySuggestWord.freq
, then bySuggestWord.score
, then bySuggestWord.string
. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
SuggestWordFrequencyComparator
public SuggestWordFrequencyComparator()Creates a new comparator that will compare bySuggestWord.freq
, then bySuggestWord.score
, then bySuggestWord.string
.
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<SuggestWord>
-