|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker,
Tree node,
java.util.concurrent.atomic.AtomicBoolean matches)
Visits a node that represents a conjunction (logical and) of conditions. |
void |
visitContains(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker,
Tree node,
java.util.concurrent.atomic.AtomicBoolean matches)
Visits a node that represents that a field must contain a value. |
void |
visitDisjunction(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker,
Tree node,
java.util.concurrent.atomic.AtomicBoolean matches)
Visits a node that represents a disjunction (logical or) of conditions. |
void |
visitEqual(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker,
Tree node,
java.util.concurrent.atomic.AtomicBoolean matches)
Visits a node that represents that a field value must be greater than or equal to some specified value. |
void |
visitFuzzy(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker,
Tree node,
java.util.concurrent.atomic.AtomicBoolean matches)
Visits a node that represents a text field that is subject to query rewrite. |
void |
visitGreaterOrEqual(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker,
Tree node,
java.util.concurrent.atomic.AtomicBoolean matches)
Visits a node that represents an inequality between a field and value. |
void |
visitGreaterThan(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker,
Tree node,
java.util.concurrent.atomic.AtomicBoolean matches)
Visits a node that represents that a field value must be greater than some specified value. |
void |
visitLessOrEqual(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker,
Tree node,
java.util.concurrent.atomic.AtomicBoolean matches)
Visits a node that represents that a field value must be less than or equal to some specified value. |
void |
visitLessThan(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker,
Tree node,
java.util.concurrent.atomic.AtomicBoolean matches)
Visits a node that represents that a field value must be less than some specified value. |
void |
visitLiteral(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker,
Tree node,
java.util.concurrent.atomic.AtomicBoolean matches)
Visits a node that represents a text field that must not be altered. |
void |
visitNegation(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker,
Tree node,
java.util.concurrent.atomic.AtomicBoolean matches)
Visits a node that represents a negation of conditions. |
void |
visitOther(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker,
Tree node,
java.util.concurrent.atomic.AtomicBoolean matches)
Catch-all method for future type of query nodes. |
void |
visitRestriction(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker,
Tree node,
java.util.concurrent.atomic.AtomicBoolean matches)
Visits a node that represents a condition restricted to a named field. |
void |
visitValue(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker,
Tree node,
java.util.concurrent.atomic.AtomicBoolean 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 visitConjunction(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker, Tree node, java.util.concurrent.atomic.AtomicBoolean matches)
visitConjunction
in interface com.google.appengine.api.search.query.QueryTreeVisitor<java.util.concurrent.atomic.AtomicBoolean>
matches
- Is set to the conjunction of node's
sub-expressions.public void visitDisjunction(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker, Tree node, java.util.concurrent.atomic.AtomicBoolean matches)
visitDisjunction
in interface com.google.appengine.api.search.query.QueryTreeVisitor<java.util.concurrent.atomic.AtomicBoolean>
matches
- Is set to the disjunction of node's
sub-expressions.public void visitNegation(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker, Tree node, java.util.concurrent.atomic.AtomicBoolean matches)
visitNegation
in interface com.google.appengine.api.search.query.QueryTreeVisitor<java.util.concurrent.atomic.AtomicBoolean>
matches
- Is set to the negation of node's sub-expression.public void visitRestriction(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker, Tree node, java.util.concurrent.atomic.AtomicBoolean matches)
visitRestriction
in interface com.google.appengine.api.search.query.QueryTreeVisitor<java.util.concurrent.atomic.AtomicBoolean>
matches
- Is set to the value of node's sub-expression.public void visitFuzzy(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker, Tree node, java.util.concurrent.atomic.AtomicBoolean matches)
visitFuzzy
in interface com.google.appengine.api.search.query.QueryTreeVisitor<java.util.concurrent.atomic.AtomicBoolean>
public void visitLiteral(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker, Tree node, java.util.concurrent.atomic.AtomicBoolean matches)
visitLiteral
in interface com.google.appengine.api.search.query.QueryTreeVisitor<java.util.concurrent.atomic.AtomicBoolean>
public void visitLessThan(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker, Tree node, java.util.concurrent.atomic.AtomicBoolean matches)
visitLessThan
in interface com.google.appengine.api.search.query.QueryTreeVisitor<java.util.concurrent.atomic.AtomicBoolean>
public void visitLessOrEqual(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker, Tree node, java.util.concurrent.atomic.AtomicBoolean matches)
visitLessOrEqual
in interface com.google.appengine.api.search.query.QueryTreeVisitor<java.util.concurrent.atomic.AtomicBoolean>
public void visitGreaterThan(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker, Tree node, java.util.concurrent.atomic.AtomicBoolean matches)
visitGreaterThan
in interface com.google.appengine.api.search.query.QueryTreeVisitor<java.util.concurrent.atomic.AtomicBoolean>
public void visitGreaterOrEqual(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker, Tree node, java.util.concurrent.atomic.AtomicBoolean matches)
visitGreaterOrEqual
in interface com.google.appengine.api.search.query.QueryTreeVisitor<java.util.concurrent.atomic.AtomicBoolean>
public void visitEqual(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker, Tree node, java.util.concurrent.atomic.AtomicBoolean matches)
visitEqual
in interface com.google.appengine.api.search.query.QueryTreeVisitor<java.util.concurrent.atomic.AtomicBoolean>
public void visitContains(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker, Tree node, java.util.concurrent.atomic.AtomicBoolean matches)
visitContains
in interface com.google.appengine.api.search.query.QueryTreeVisitor<java.util.concurrent.atomic.AtomicBoolean>
public void visitValue(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker, Tree node, java.util.concurrent.atomic.AtomicBoolean matches)
visitValue
in interface com.google.appengine.api.search.query.QueryTreeVisitor<java.util.concurrent.atomic.AtomicBoolean>
public void visitOther(com.google.appengine.api.search.query.QueryTreeWalker<java.util.concurrent.atomic.AtomicBoolean> walker, Tree node, java.util.concurrent.atomic.AtomicBoolean matches)
visitOther
in interface com.google.appengine.api.search.query.QueryTreeVisitor<java.util.concurrent.atomic.AtomicBoolean>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |