public class RelevanceResultComparator extends Object implements Comparator<Result>
Result objects.| Constructor and Description |
|---|
RelevanceResultComparator(org.opengis.filter.sort.SortOrder relevanceOrder)
Constructs the comparator with the specified sort order, either relevance ascending or
relevance descending.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Result contentA,
Result contentB)
Compares the relevance between the two results.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic RelevanceResultComparator(org.opengis.filter.sort.SortOrder relevanceOrder)
relevanceOrder - the relevance sort orderpublic int compare(Result contentA, Result contentB)
compare in interface Comparator<Result>This work is licensed under a Creative Commons Attribution 4.0 International License.