public class CandidateResult extends Object implements Comparable<CandidateResult>
CandidateResultSet
Constructor and Description |
---|
CandidateResult(int docid)
Make a new CandidateResult for a ResultSet based on the
specified docid.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(CandidateResult o)
.
|
boolean |
equals(Object obj) |
int |
getDocId()
Returns the docid 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.
|
public CandidateResult(int docid)
docid
- of the documentpublic int compareTo(CandidateResult o)
compareTo
in interface Comparable<CandidateResult>
public 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 occurrenceTerrier 4.0. Copyright © 2004-2014 University of Glasgow