public class QueryResultComparator extends Object implements Comparator<QueryResult>
A Comparator that allows for sorting of QueryResults based on a Metadata element
Constructor and Description |
---|
QueryResultComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(QueryResult qr1,
QueryResult qr2) |
String |
getSortByMetKey() |
void |
setSortByMetKey(String sortByMetKey) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public String getSortByMetKey()
public void setSortByMetKey(String sortByMetKey)
public int compare(QueryResult qr1, QueryResult qr2)
compare
in interface Comparator<QueryResult>
Copyright © 1999–2017 Apache OODT. All rights reserved.