P - Score parameter typeF - The type to apply scores topublic abstract class PostScorer<P,F> extends Object implements Scorer
AbstractScorers have done their job.| Constructor and Description |
|---|
PostScorer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addScore(FieldScore<F> fscore,
double score)
Add score to a field
|
protected void |
addScore(FieldScores<P,F> scores,
F field,
double score)
Add score to a field
|
abstract void |
handle(FieldScores<P,F> scores)
Optionally apply any scores to the given
FieldScores object. |
protected void |
setScore(FieldScores<P,F> scores,
F field,
double score)
Set score to an exact value for a field
|
String |
toString() |
public abstract void handle(FieldScores<P,F> scores)
FieldScores object.scores - The collection of scores to work on.protected void addScore(FieldScore<F> fscore, double score)
fscore - FieldScore container for the fieldscore - Score to giveprotected void addScore(FieldScores<P,F> scores, F field, double score)
scores - FieldScores object containing the fieldfield - Field to apply score forscore - Score to applyprotected void setScore(FieldScores<P,F> scores, F field, double score)
scores - FieldScores object containing the fieldfield - Field to apply score forscore - Score to applyCopyright © 2014. All rights reserved.