org.apache.oodt.cas.filemgr.structs.query
Class QueryResultComparator

java.lang.Object
  extended by org.apache.oodt.cas.filemgr.structs.query.QueryResultComparator
All Implemented Interfaces:
Comparator<QueryResult>

public class QueryResultComparator
extends Object
implements Comparator<QueryResult>

Version:
$Revision: 9683 $

A Comparator that allows for sorting of QueryResults based on a Metadata element

Author:
bfoster

Constructor Summary
QueryResultComparator()
           
 
Method Summary
 int compare(QueryResult qr1, QueryResult qr2)
           
 String getSortByMetKey()
           
 void setSortByMetKey(String sortByMetKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

QueryResultComparator

public QueryResultComparator()
Method Detail

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.