|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ir.vsr.Retrieval
A lightweight object for storing information about a retrieved Document.
Field Summary | |
DocumentReference |
docRef
A reference to the Document being retrieved |
double |
score
The score given to this document by a retrieval engine. |
Constructor Summary | |
Retrieval(DocumentReference docRef,
double score)
Create a retrieval with these values |
Method Summary | |
int |
compareTo(java.lang.Object obj)
Compares this Retrieval to another for sorting from best to worst. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public DocumentReference docRef
public double score
Constructor Detail |
public Retrieval(DocumentReference docRef, double score)
Method Detail |
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
obj
- The Retrieval to compare with.Arrays.sort
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |