public class QueryEvaluator
extends java.lang.Object
implements com.google.appengine.api.search.query.QueryTreeVisitor<com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext>
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void visitSequence(Tree node,
com.google.appengine.api.prospectivesearch.dev.BooleanQueryContext matches)
com.google.appengine.api.search.query.QueryTreeVisitorvisitSequence 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.QueryTreeVisitorvisitGlobal 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.QueryTreeVisitorvisitFunction 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>