net.ontopia.topicmaps.query.impl.basic
Class AbstractQueryProcessor

java.lang.Object
  extended by net.ontopia.topicmaps.query.impl.basic.AbstractQueryProcessor
Direct Known Subclasses:
QueryProcessor, RulePredicate

public abstract class AbstractQueryProcessor
extends java.lang.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
AbstractQueryProcessor()
           
 
Method Summary
 java.util.Collection findClauseItems(java.util.List clauses, java.util.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.
 java.util.Collection findClauseVariables(java.util.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(java.util.List clauses, QueryMatches result)
          INTERNAL: Takes the query parameters and produces the complete list of matches.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractQueryProcessor

public AbstractQueryProcessor()
Method Detail

findClauseItems

public java.util.Collection findClauseItems(java.util.List clauses,
                                            java.util.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 java.util.Collection findClauseVariables(java.util.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(java.util.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


Copyright © 2000-2012 Ontopia.