Class AbstractQueryProcessor
java.lang.Object
net.ontopia.topicmaps.query.impl.basic.AbstractQueryProcessor
- Direct Known Subclasses:
QueryProcessor,RulePredicate
INTERNAL: A collection of utility methods used by classes which need
to evaluate queries. Simply a code-sharing class for QueryProcessor
and RulePredicate.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindClauseItems(List clauses, Map parameters) INTERNAL: Finds all the values (constants and variables) used in the set of clauses and returns them in a collection with no duplicates.findClauseVariables(List clauses) INTERNAL: Finds all the variables used in the set of clauses and returns them in a collection with no duplicates.static QueryMatchessatisfy(List clauses, QueryMatches result) INTERNAL: Takes the query parameters and produces the complete list of matches.
-
Constructor Details
-
AbstractQueryProcessor
public AbstractQueryProcessor()
-
-
Method Details
-
findClauseItems
INTERNAL: Finds all the values (constants and variables) used in the set of clauses and returns them in a collection with no duplicates. -
findClauseVariables
INTERNAL: Finds all the variables used in the set of clauses and returns them in a collection with no duplicates. -
satisfy
INTERNAL: Takes the query parameters and produces the complete list of matches. It's static because it's not inherited, it uses no instance variables, and this makes it easier to access from outside when needed.- Throws:
InvalidQueryException
-