|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.egothor.core.query.Runner
org.egothor.query.runner.VectorRunner
public class VectorRunner
A VectorRunner can execute a number of Runners concurrently. The Rider given to the constructor reads the inverted lists of documents and each Runner in the group of Runners given to the constructor is able to calculate a document's similarity to the query.Similarity to the query results in the document being added to the Rider's hit list.
This object represents a binary form of set of formulas (clausulas).
| Constructor Summary | |
|---|---|
VectorRunner(Rider r,
Runner[] w)
Constructor for the VectorRunner object. |
|
| Method Summary | |
|---|---|
int |
evaluate(long uid)
Return the calculated similarity between the query and the document with the given unique ID.. |
java.lang.String |
invalidReason()
Return an explanation as to why the search contained in the Runner is invalid. |
void |
run()
For all candidates in a rider calculates a similarity and if the similarity is a positive value, then this method calls Rider.accepted(int). |
int |
terms()
Description of the Method |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VectorRunner(Rider r,
Runner[] w)
r - the Rider which will open the inverted listsw - the Runners containing the queries| Method Detail |
|---|
public int terms()
terms in class Runnerpublic void run()
Rider.accepted(int).
If the Rider.accepted(int) method says that
it does not need more hits, this method may end early.
run in class Runnerpublic java.lang.String invalidReason()
invalidReason in class Runnerpublic int evaluate(long uid)
evaluate in class Runneruid - the unique ID of the document in question
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||