|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.bbk.dcs.automed.qproc.evaluate.Evaluator
public class Evaluator
The class that coordinates the evaluation of IQL queries.
| Field Summary | |
|---|---|
protected FunctionTable |
_ft
|
protected QueryProcessorConfiguration |
_qpc
|
protected java.util.Map |
_qpCache
|
long |
addApplyToSpine
|
int |
applyToSpineCalls
|
int |
builtins
|
long |
builtinsTimeSpent
|
long |
endApplyInSpine
|
long |
endBuiltIn
|
long |
endEval
|
long |
endRL
|
long |
endWHNF
|
long |
evaluationTimeSpent
|
int |
lambdaCalls
|
long |
lambdaTimeSpent
|
protected java.util.logging.Logger |
logger
|
int |
performCalls
|
long |
performEnd
|
long |
performStart
|
long |
performTimeSpent
|
int |
realWHNFCalls
|
long |
startApplyInSpine
|
long |
startBuiltIn
|
long |
startEval
|
long |
startRL
|
long |
startWHNF
|
int |
totalEvaluateCalls
|
int |
totalWHNFCalls
|
long |
whnfTimeSpent
|
| Constructor Summary | |
|---|---|
Evaluator(FunctionTable ftab)
Deprecated. use Evaluator(QueryProcessorConfiguration) instead |
|
Evaluator(FunctionTable ftab,
int sourceSchemaSID)
Deprecated. use Evaluator(QueryProcessorConfiguration) instead |
|
Evaluator(QueryProcessorConfiguration qpc)
|
|
| Method Summary | |
|---|---|
void |
evaluate(ASG g,
java.util.Map cache,
QueryProcessorConfiguration qpc)
Evaluates g to normal form. |
void |
evaluate(ASG g,
QueryProcessorConfiguration qpc)
Deprecated. use evaluate(ASG, Map, QueryProcessorConfiguration) instead |
void |
evaluate(Cell r)
Evaluates the graph of which root is the root to normal form. |
void |
finalize()
|
QueryProcessorConfiguration |
getConfiguration()
Returns the specific configuration for each query processing phase |
java.lang.String |
getName()
Return a unique name of a provider. |
java.util.Map |
getQPCache()
|
QueryDescription |
getQueryDescription()
|
java.lang.String |
getQueryID()
Return the query ID |
int |
getSourceSchemaSID()
|
protected void |
initialisePerformanceVars()
|
protected void |
processConfiguration(QueryProcessorConfiguration qpc)
|
protected void |
rangeSimplifications(ASG g)
|
void |
setCacheStatus(boolean value)
Deprecated. use QueryProcessorConfiguration.setCacheStatus instead |
void |
weakHeadNF(Cell root)
Evaluates the input ASG to weak head normal form. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.logging.Logger logger
protected QueryProcessorConfiguration _qpc
protected java.util.Map _qpCache
protected FunctionTable _ft
public int totalEvaluateCalls
public int totalWHNFCalls
public int realWHNFCalls
public int applyToSpineCalls
public int builtins
public int lambdaCalls
public int performCalls
public long whnfTimeSpent
public long startWHNF
public long endWHNF
public long addApplyToSpine
public long startApplyInSpine
public long endApplyInSpine
public long builtinsTimeSpent
public long startBuiltIn
public long endBuiltIn
public long evaluationTimeSpent
public long startEval
public long endEval
public long lambdaTimeSpent
public long startRL
public long endRL
public long performTimeSpent
public long performStart
public long performEnd
| Constructor Detail |
|---|
public Evaluator(QueryProcessorConfiguration qpc)
public Evaluator(FunctionTable ftab)
Evaluator(QueryProcessorConfiguration) instead
public Evaluator(FunctionTable ftab,
int sourceSchemaSID)
Evaluator(QueryProcessorConfiguration) instead
| Method Detail |
|---|
protected void processConfiguration(QueryProcessorConfiguration qpc)
public void evaluate(ASG g,
QueryProcessorConfiguration qpc)
throws QueryEvaluationException
evaluate(ASG, Map, QueryProcessorConfiguration) instead
QueryEvaluationException
public void evaluate(ASG g,
java.util.Map cache,
QueryProcessorConfiguration qpc)
throws QueryEvaluationException
evaluate in interface QueryEvaluationProviderg - an ASG object of an IQL queryqpc - a {@link QueryProcessingConfiguration) object specific for query evaluation
TypeException
QProcException
QueryEvaluationExceptionpublic java.lang.String getQueryID()
public QueryDescription getQueryDescription()
public void evaluate(Cell r)
throws TypeException,
QProcException
TypeException
QProcExceptionprotected void initialisePerformanceVars()
public void weakHeadNF(Cell root)
throws TypeException,
QProcException
TypeException
QProcExceptionpublic int getSourceSchemaSID()
public void finalize()
finalize in class java.lang.Objectpublic java.lang.String getName()
QueryEvaluationProviderMap
of provider objects
getName in interface QueryEvaluationProviderpublic QueryProcessorConfiguration getConfiguration()
QueryEvaluationProvider
getConfiguration in interface QueryEvaluationProviderprotected void rangeSimplifications(ASG g)
public java.util.Map getQPCache()
public void setCacheStatus(boolean value)
QueryProcessorConfiguration.setCacheStatus instead
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||