|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.appengine.api.prospectivesearch.dev.QueryEvaluator
public class QueryEvaluator
The QueryEvaluator class performs a full visit of the query tree, dispatching leaf evaluations to the QueryEngine. Fine-grained debugging of query parsing is available at the logging level java.util.logging.Level.FINEST. Not multi-thread safe.
| Method Summary | |
|---|---|
void |
visitConjunction(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
Visits a node that represents a conjunction (logical and) of conditions. |
void |
visitContains(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
Visits a node that represents that a field must contain a value. |
void |
visitDisjunction(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
Visits a node that represents a disjunction (logical or) of conditions. |
void |
visitEqual(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
Visits a node that represents that a field value must be greater than or equal to some specified value. |
void |
visitFunction(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
Visits a node that represents a function computed on some arguments. |
void |
visitFuzzy(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
Visits a node that represents a text field that is subject to query rewrite. |
void |
visitGlobal(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
Visits a node that represents a global field. |
void |
visitGreaterOrEqual(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
Visits a node that represents an inequality between a field and value. |
void |
visitGreaterThan(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
Visits a node that represents that a field value must be greater than some specified value. |
void |
visitLessOrEqual(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
Visits a node that represents that a field value must be less than or equal to some specified value. |
void |
visitLessThan(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
Visits a node that represents that a field value must be less than some specified value. |
void |
visitLiteral(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
Visits a node that represents a text field that must not be altered. |
void |
visitNegation(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
Visits a node that represents a negation of conditions. |
void |
visitOther(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
Catch-all method for future type of query nodes. |
void |
visitSequence(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
Visits a node that represents a sequence of expressions. |
void |
visitValue(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
Visits a node that represents a constant value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void visitSequence(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
com.google.appengine.api.search.query.QueryTreeVisitor
visitSequence in interface com.google.appengine.api.search.query.QueryTreeVisitor<com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext>
public void visitConjunction(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
visitConjunction in interface com.google.appengine.api.search.query.QueryTreeVisitor<com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext>matches - Is set to the conjunction of node's
sub-expressions.
public void visitDisjunction(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
visitDisjunction in interface com.google.appengine.api.search.query.QueryTreeVisitor<com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext>matches - Is set to the disjunction of node's
sub-expressions.
public void visitNegation(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
visitNegation in interface com.google.appengine.api.search.query.QueryTreeVisitor<com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext>matches - Is set to the negation of node's sub-expression.
public void visitFuzzy(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
visitFuzzy in interface com.google.appengine.api.search.query.QueryTreeVisitor<com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext>
public void visitLiteral(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
visitLiteral in interface com.google.appengine.api.search.query.QueryTreeVisitor<com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext>
public void visitLessThan(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
visitLessThan in interface com.google.appengine.api.search.query.QueryTreeVisitor<com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext>
public void visitLessOrEqual(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
visitLessOrEqual in interface com.google.appengine.api.search.query.QueryTreeVisitor<com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext>
public void visitGreaterThan(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
visitGreaterThan in interface com.google.appengine.api.search.query.QueryTreeVisitor<com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext>
public void visitGreaterOrEqual(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
visitGreaterOrEqual in interface com.google.appengine.api.search.query.QueryTreeVisitor<com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext>
public void visitEqual(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
visitEqual in interface com.google.appengine.api.search.query.QueryTreeVisitor<com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext>
public void visitContains(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
visitContains in interface com.google.appengine.api.search.query.QueryTreeVisitor<com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext>
public void visitValue(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
visitValue in interface com.google.appengine.api.search.query.QueryTreeVisitor<com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext>
public void visitGlobal(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
com.google.appengine.api.search.query.QueryTreeVisitor
visitGlobal in interface com.google.appengine.api.search.query.QueryTreeVisitor<com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext>
public void visitFunction(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
com.google.appengine.api.search.query.QueryTreeVisitor
visitFunction in interface com.google.appengine.api.search.query.QueryTreeVisitor<com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext>
public void visitOther(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
visitOther in interface com.google.appengine.api.search.query.QueryTreeVisitor<com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||