org.apache.oodt.cas.filemgr.structs.query
Class QueryResultComparator
java.lang.Object
org.apache.oodt.cas.filemgr.structs.query.QueryResultComparator
- All Implemented Interfaces:
- Comparator<QueryResult>
public class QueryResultComparator
- extends Object
- implements Comparator<QueryResult>
- Version:
- $Revision: 11462 $
A Comparator that allows for sorting of QueryResults based on a
Metadata element
- Author:
- bfoster
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryResultComparator
public QueryResultComparator()
getSortByMetKey
public String getSortByMetKey()
setSortByMetKey
public void setSortByMetKey(String sortByMetKey)
compare
public int compare(QueryResult qr1,
QueryResult qr2)
- Specified by:
compare
in interface Comparator<QueryResult>
Copyright © 1999-2011 Apache OODT. All Rights Reserved.