com.hrstc.lucene.queryexpansion
Class QueryBoostComparator

java.lang.Object
  extended by com.hrstc.lucene.queryexpansion.QueryBoostComparator
All Implemented Interfaces:
java.util.Comparator

public class QueryBoostComparator
extends java.lang.Object
implements java.util.Comparator


Constructor Summary
QueryBoostComparator()
          Creates a new instance of QueryBoostComparator
 
Method Summary
 int compare(java.lang.Object obj1, java.lang.Object obj2)
          Compares queries based on their boost Since want to be sorted in decending order; comparison will be reversed
 
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

QueryBoostComparator

public QueryBoostComparator()
Creates a new instance of QueryBoostComparator

Method Detail

compare

public int compare(java.lang.Object obj1,
                   java.lang.Object obj2)
Compares queries based on their boost Since want to be sorted in decending order; comparison will be reversed

Specified by:
compare in interface java.util.Comparator