|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.egothor.core.query.Runner org.egothor.query.runner.AndRunner
public class AndRunner
The AndRunner object represents a binary form of the boolean AND formula. For example, the user may wish to view documents containing the words BASS and GUITAR. The form of this query would be given as:
BASS&&GUITAR.
Field Summary | |
---|---|
Runner |
a
Description of the Field |
Runner |
b
Description of the Field |
Constructor Summary | |
---|---|
AndRunner(Runner a,
Runner b)
Constructor for the AndRunner object. |
Method Summary | |
---|---|
int |
evaluate(long uid)
Return the calculated similarity between this query and the document with the given unique ID. |
java.lang.String |
invalidReason()
Return an explanation as to why this search is invalid. |
int |
terms()
Description of the Method |
Methods inherited from class org.egothor.core.query.Runner |
---|
run |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Runner a
public Runner b
Constructor Detail |
---|
public AndRunner(Runner a, Runner b)
a
- the Runner for the first queryb
- the Runner for the second queryMethod Detail |
---|
public int terms()
terms
in class Runner
public java.lang.String invalidReason()
invalidReason
in class Runner
public int evaluate(long uid)
evaluate
in class Runner
uid
- the unique id of the document
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |