|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectno.sesat.commons.visitor.AbstractReflectionVisitor
no.sesat.search.query.analyser.Scorer
public final class Scorer
Responsible for Visiting the Query and scoring a total according to the rule's predicateScores listed in the context. This class is not thread-safe.
| Nested Class Summary | |
|---|---|
static interface |
Scorer.Context
The contextual dependencies the Scorer requires to calculate a total score for this Query it will visit. |
| Field Summary |
|---|
| Fields inherited from class no.sesat.commons.visitor.AbstractReflectionVisitor |
|---|
VISIT_METHOD_IMPL |
| Constructor Summary | |
|---|---|
Scorer(Scorer.Context cxt)
Create the Scorer with the required context. |
|
| Method Summary | |
|---|---|
void |
addScore(PredicateScore predicateScore)
A positive match on the PredicateScore increases the score. |
void |
error(PredicateScore predicateScore)
An error occurred looking for a match against the PredicateScore. |
int |
getScore()
the scoring result. |
void |
minusScore(PredicateScore predicateScore)
A negative match on the PredicateScore decreases the score. |
| Methods inherited from class no.sesat.commons.visitor.AbstractReflectionVisitor |
|---|
visit, visitImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Scorer(Scorer.Context cxt)
cxt - | Method Detail |
|---|
public int getScore()
public void addScore(PredicateScore predicateScore)
predicateScore - public void minusScore(PredicateScore predicateScore)
predicateScore - public void error(PredicateScore predicateScore)
predicateScore -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||