|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.matching.daat.CandidateResult
public class CandidateResult
A class used to when maintaining a top-k candidate documents ResultSet.
CandidateResultSet| Constructor Summary | |
|---|---|
CandidateResult(int id)
Make a new CandidateResult for a ResultSet based on the specificed docid. |
|
| Method Summary | |
|---|---|
int |
compareTo(CandidateResult o)
. |
boolean |
equals(java.lang.Object obj)
|
int |
getDocId()
Returns the docids of this result |
short |
getOccurrence()
Returns the occurrence value of this result |
double |
getScore()
Returns the score of this result |
int |
hashCode()
|
void |
updateOccurrence(short update)
Update the occurrence value of this result. |
void |
updateScore(double update)
Increase the score by the specified amount. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CandidateResult(int id)
id - of the document| Method Detail |
|---|
public int compareTo(CandidateResult o)
compareTo in interface java.lang.Comparable<CandidateResult>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int getDocId()
public double getScore()
public short getOccurrence()
public void updateScore(double update)
update - Amount to increase document score by.public void updateOccurrence(short update)
update - Mask to OR with current occurrence
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||