Package com.yahoo.search.result
Class HitOrderer
- java.lang.Object
-
- com.yahoo.search.result.HitOrderer
-
- Direct Known Subclasses:
HitSortOrderer
public abstract class HitOrderer extends java.lang.Object
A class capable of ordering a list of hits- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description HitOrderer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.Comparator<Hit>
getComparator()
Returns the Comparator that this HitOrderer uses internally to sort hits.abstract void
order(java.util.List<Hit> hits)
Orders the given list of hits
-
-
-
Method Detail
-
order
public abstract void order(java.util.List<Hit> hits)
Orders the given list of hits
-
getComparator
public java.util.Comparator<Hit> getComparator()
Returns the Comparator that this HitOrderer uses internally to sort hits. Returns null if no Comparator is used.This default implementation returns null.
- Returns:
- the Comparator used to order hits, or null
-
-