org.tm4j.tolog .QueryEvaluator

Inheritance Hierarchy

Method Summary
void addRule(java.lang.String ruleString)
void addRules(org.tm4j.tolog.parser.ASTScript script)
void dumpMatches(java.util.List matches)
void dumpVars(java.util.Hashtable vars,java.lang.String prefix)
TologResultsSet evaluate(java.lang.String queryString)
Performs the evaluation of the query queryString.
QueryEvaluator.ExpansionInfo expand(org.tm4j.tolog.parser.ASTClause clause)
org.tm4j.tolog.parser.ASTClauseList expand(org.tm4j.tolog.parser.ASTClauseList clauseList)
java.lang.String getExpandPrefix()
void getMatches(java.util.List clauses,int clauseIx,java.util.Hashtable vars,java.util.List matches)
void getMatches(java.util.List params,int paramIx,java.util.List prPairs,java.util.Hashtable vars,java.util.List matches)
void getMatches(org.tm4j.tolog.parser.ASTAlternates alternates,java.util.Hashtable vars,java.util.List matches)
Processes the alternatives construct represented by alt using the variable binding specified by vars.
void getMatches(org.tm4j.tolog.parser.ASTClauseList clauseList,java.util.List matches)
void getMatches(org.tm4j.tolog.parser.ASTParameterList params,java.util.List prPairs,java.util.Hashtable vars,java.util.List matches)
java.util.List getPlayerRolePairs(org.tm4j.topicmap.Association a)
void invokeExtension(java.lang.Class extCls,org.tm4j.tolog.parser.ASTParameterList params,java.util.Hashtable vars,java.util.List matches)
void invokeExtensionTest(java.lang.Class extCls,org.tm4j.tolog.parser.ASTParameterList params,java.util.Hashtable vars)
Invokes the extension class extCls to test the extension predicate under the set of bound variables specified in vars
void loadRules(java.lang.String fileName)
java.util.List optimiseClauseList(org.tm4j.tolog.parser.ASTClauseList clauseList)
Optimises the contents of the clause list.
java.util.List optimiseParams(org.tm4j.tolog.parser.ASTParameterList params,java.util.Hashtable vars)
Alters the ordering of params so that all facts (parameters with no variables) occur at the start of the list.
void populateReplacementVariablesFromExpandedClause(org.tm4j.tolog.parser.ASTParameterList params,org.tm4j.tolog.parser.ASTClause repHead,java.lang.String repPrefix,java.util.Map replacementVars)
Processes the specified clause to map any bound variables in the clause to the new replacement variable name.
TologResultsSetImpl projectAllResults(java.util.List results)
Creates a results set in which all variables in the original query are mapped to columns in the results set.
TologResultsSetImpl projectResults(java.util.List results,org.tm4j.tolog.parser.ASTProjection projection)
void pruneInternal(java.util.List matches)
void registerExtension(java.lang.String predicate,java.lang.Class implCls)
Registers a new extension predicate with the query engine.
void setSortComparator(java.util.Comparator comp)
Registers a sort order comparator with the query engine.
java.lang.String shortAddress(org.tm4j.topicmap.Topic t)
void sortResults(org.tm4j.tolog.TologResultsSetImpl results,org.tm4j.tolog.parser.ASTSort sort)
void test(org.tm4j.tolog.parser.ASTClause clause,java.util.Hashtable vars)
void testMatches(java.util.List clauses,int clauseIx,java.util.Hashtable vars,java.util.List matches)
Implementation of not() processing.
void testMatches(org.tm4j.tolog.parser.ASTParameterList params,java.util.List prPairs,java.util.Hashtable vars)
Tests the parameters in params against the bound variables in vars.

Related Topics

Imports
Is Contained By