|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.util.PriorityQueue<SuggestWord>
org.apache.lucene.search.spell.SuggestWordQueue
public final class SuggestWordQueue
Sorts SuggestWord instances
SuggestWordScoreComparator,
SuggestWordFrequencyComparator| Field Summary | |
|---|---|
static Comparator<SuggestWord> |
DEFAULT_COMPARATOR
|
| Constructor Summary | |
|---|---|
SuggestWordQueue(int size)
Use the DEFAULT_COMPARATOR |
|
SuggestWordQueue(int size,
Comparator<SuggestWord> comparator)
Specify the size of the queue and the comparator to use for sorting. |
|
| Method Summary | |
|---|---|
protected boolean |
lessThan(SuggestWord wa,
SuggestWord wb)
|
| Methods inherited from class org.apache.lucene.util.PriorityQueue |
|---|
add, clear, getHeapArray, getSentinelObject, initialize, insertWithOverflow, pop, size, top, updateTop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Comparator<SuggestWord> DEFAULT_COMPARATOR
| Constructor Detail |
|---|
public SuggestWordQueue(int size)
DEFAULT_COMPARATOR
size - The size of the queue
public SuggestWordQueue(int size,
Comparator<SuggestWord> comparator)
size - The sizecomparator - The comparator.| Method Detail |
|---|
protected final boolean lessThan(SuggestWord wa,
SuggestWord wb)
lessThan in class org.apache.lucene.util.PriorityQueue<SuggestWord>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||