|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectTotalHitsComparator.HitsComp
private class TotalHitsComparator.HitsComp
| Field Summary |
|---|
| Fields inherited from interface ScoreDocComparator |
|---|
INDEXORDER, RELEVANCE |
| Constructor Summary | |
|---|---|
private |
TotalHitsComparator.HitsComp()
|
| Method Summary | |
|---|---|
int |
compare(ScoreDoc d1,
ScoreDoc d2)
Compares two ScoreDoc objects and returns a result indicating their sort order. |
int |
sortType()
Returns the type of sort. |
Comparable |
sortValue(ScoreDoc doc)
Returns the value used to sort the given document. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private TotalHitsComparator.HitsComp()
| Method Detail |
|---|
public int compare(ScoreDoc d1,
ScoreDoc d2)
compare in interface ScoreDocComparatord1 - First ScoreDocd2 - Second ScoreDoc
-1 if i should come before j1 if i should come after j0 if they are equalComparatorpublic Comparable sortValue(ScoreDoc doc)
sortValue in interface ScoreDocComparatordoc - The documentpublic int sortType()
SortField.SCORE, SortField.DOC, SortField.STRING, SortField.INTEGER,
SortField.FLOAT or SortField.CUSTOM. It is not valid to return SortField.AUTO.
This is used by multisearchers to determine how to collate results from their searchers.
sortType in interface ScoreDocComparatorSortField
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||