Class AbstractQueryProcessor
- java.lang.Object
-
- net.ontopia.topicmaps.query.impl.basic.AbstractQueryProcessor
-
- Direct Known Subclasses:
QueryProcessor
,RulePredicate
public abstract class AbstractQueryProcessor extends Object
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 Constructor Description AbstractQueryProcessor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection
findClauseItems(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.Collection
findClauseVariables(List clauses)
INTERNAL: Finds all the variables used in the set of clauses and returns them in a collection with no duplicates.static QueryMatches
satisfy(List clauses, QueryMatches result)
INTERNAL: Takes the query parameters and produces the complete list of matches.
-
-
-
Method Detail
-
findClauseItems
public Collection findClauseItems(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
public Collection findClauseVariables(List clauses)
INTERNAL: Finds all the variables used in the set of clauses and returns them in a collection with no duplicates.
-
satisfy
public static QueryMatches satisfy(List clauses, QueryMatches result) throws InvalidQueryException
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
-
-