org.tm4j.tologx .QueryEvaluator
Description
This is the high-level interface to the tolog 1.0 query engine. Using this interface you can initialise the evaluator by loading one or more rules module files or by adding rules as strings. This class also supports the registration of extension predicates.
Method Summary | |
---|---|
void |
addRule(java.lang.String rule)
Adds a new rule to the QueryEvaluator.
|
void |
addRulesModule(java.io.InputStream src,java.lang.String prefix)
Loads a rules module from the specified stream.
|
TologResultsSet |
execute(java.lang.String queryString)
A convenience method that parses and optimizes the specified
tolog query and then executes it immediately.
|
TologResultsSet |
execute(java.lang.String queryString,java.lang.Object[] queryParams)
A convenience method that parses and optimizes the specified
tolog query and then executes it immediately.
|
java.util.Map |
getRegisteredPredicates()
Returns a Map of the predicates currently registered with the
QueryEvaluator.
|
PreparedQuery |
prepareQuery(java.lang.String queryString)
Parses (and possibly optimizes) the specified tolog query string.
|
void |
registerPredicateClass(java.lang.String predicateName,java.lang.Class predicateClass)
Registers an extension predicate with the QueryEvaluator.
|
Meta Data (1)
Related Topics
Imports
Is Contained By