Package org.apache.lucene.search.spell
Class SuggestWordQueue
Sorts SuggestWord instances
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<SuggestWord> Default comparator: score then frequency. -
Constructor Summary
ConstructorsConstructorDescriptionSuggestWordQueue(int size) Use theDEFAULT_COMPARATORSuggestWordQueue(int size, Comparator<SuggestWord> comparator) Specify the size of the queue and the comparator to use for sorting. -
Method Summary
Methods inherited from class org.apache.lucene.util.PriorityQueue
add, clear, insertWithOverflow, pop, size, top, updateTop
-
Field Details
-
DEFAULT_COMPARATOR
Default comparator: score then frequency.- See Also:
-
-
Constructor Details
-
SuggestWordQueue
public SuggestWordQueue(int size) Use theDEFAULT_COMPARATOR- Parameters:
size- The size of the queue
-
SuggestWordQueue
Specify the size of the queue and the comparator to use for sorting.- Parameters:
size- The sizecomparator- The comparator.
-