|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the result item type the list contains.public interface ResultList<T extends ResultItem>
A list of ResultItems. The list itself is a "result" that contain properties (suggestions, relevant queries, etc).
| Method Summary | |
|---|---|
ResultList<T> |
addField(String name,
String value)
Opposed to the superinterface, ResultLists can mutate and this method will return itself. |
ResultList<T> |
addObjectField(String name,
Serializable value)
Opposed to the superinterface, ResultLists can mutate and this method will return itself. |
void |
addQuerySuggestion(Suggestion query)
|
void |
addResult(T item)
Adds the result to the end of the current list of results. |
void |
addResults(List<? extends T> item)
Appends the results to the end of the current list of results. |
void |
addSpellingSuggestion(WeightedSuggestion suggestion)
|
int |
getHitCount()
Get the hitcount. |
Collection<Suggestion> |
getQuerySuggestions()
|
List<WeightedSuggestion> |
getRelevantQueries()
|
List<T> |
getResults()
Returns a defensive copy of the results. |
List<WeightedSuggestion> |
getSpellingSuggestions()
|
void |
removeResult(T item)
Remove the result from the current result list. |
void |
removeResults()
Remove all results from the current result list. |
void |
replaceResult(T original,
T theNew)
Replace the original with theNew. |
void |
setHitCount(int hitCount)
Set the hitcount. |
void |
sortResults(Comparator comparator)
Sorts the results according to the order induced by the specified comparator. |
| Methods inherited from interface no.sesat.search.result.ResultItem |
|---|
addToMultivaluedField, getField, getFieldNames, getMultivaluedField, getObjectField, getTitle, getUrl, setTitle, setUrl |
| Method Detail |
|---|
int getHitCount()
void setHitCount(int hitCount)
hitCount - List<T> getResults()
void addResult(T item)
item - void addResults(List<? extends T> item)
item -
void replaceResult(T original,
T theNew)
original - theNew - void removeResult(T item)
item - void removeResults()
void sortResults(Comparator comparator)
comparator - List<WeightedSuggestion> getSpellingSuggestions()
void addSpellingSuggestion(WeightedSuggestion suggestion)
suggestion - Collection<Suggestion> getQuerySuggestions()
void addQuerySuggestion(Suggestion query)
query - List<WeightedSuggestion> getRelevantQueries()
ResultList<T> addField(String name,
String value)
addField in interface ResultItemname - value - html formatted string. html to display must be escaped.
ResultList<T> addObjectField(String name,
Serializable value)
addObjectField in interface ResultItemname - value -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||