|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.egothor.core.query.Runner
public abstract class Runner
The Runner object is the gateway between the user making a query and the inverted lists created by the indexer. It has two jobs: to check the validity or the user's query (to check that the query syntax is Egothor compatible), and to calculate the similarity of a document's contents to the user's query.
Constructor Summary | |
---|---|
Runner()
|
Method Summary | |
---|---|
abstract int |
evaluate(long uid)
Return the calculated similarity. |
abstract java.lang.String |
invalidReason()
Return an explanation as to why this search is invalid. |
void |
run()
Execute this runner. |
abstract int |
terms()
Return number of terms evaluated in this runner. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Runner()
Method Detail |
---|
public abstract int terms()
public abstract java.lang.String invalidReason()
public abstract int evaluate(long uid)
uid
- the unique ID of the document that is evaluated
public void run()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |