|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.medor.eval.lib.MedorEvaluator
This class is a simple evaluator of query tree, supporting the data prefetching
Constructor Summary | |
MedorEvaluator(QueryTree query,
long cacheSize)
|
Method Summary | |
TupleCollection |
evaluate(ParameterOperand[] parameters,
ConnectionResources resources,
java.util.Map evaluationMDMap)
First, it allocates a tree of Evaluator (Wrapper or NodeEvaluator) for the query tree associated to this evaluator. |
TupleCollection |
evaluate(ParameterOperand[] parameters,
ConnectionResources resources,
PrefetchBuffer prefetchBuffer,
java.util.Map evalMDMap)
Launch the evaluation of a query. |
long |
getCacheSize()
|
QueryTree |
getQueryTree()
|
ConnectionResources |
getRequiredConnectionResources()
|
WrapperFactory |
getWrapperFactory()
Returns the associated WrapperFactory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MedorEvaluator(QueryTree query, long cacheSize) throws EvaluationException
Method Detail |
public WrapperFactory getWrapperFactory()
QueryEvaluator
getWrapperFactory
in interface QueryEvaluator
public TupleCollection evaluate(ParameterOperand[] parameters, ConnectionResources resources, java.util.Map evaluationMDMap) throws EvaluationException
evaluate
in interface QueryEvaluator
parameters
- is the array of parametersresources
- is the holder of connection used by the wrapper to
access the data support.evaluationMDMap
- contains a map associating an EvaluationMetaData object
to each of the query nodes of the query tree currently associated to the
QueryEvaluator.
EvaluationException
public TupleCollection evaluate(ParameterOperand[] parameters, ConnectionResources resources, PrefetchBuffer prefetchBuffer, java.util.Map evalMDMap) throws EvaluationException
QueryEvaluator
evaluate
in interface QueryEvaluator
parameters
- is a ConnectionResources containing associations between
the DataStore names used in the QueryTree and the connection objects to
use for the evaluation.prefetchBuffer
- is the prefetchBuffer instance where buffer data
must be put. If this field is null, then no data prefetching mus be done.resources
- is a ConnectionResources containing associations between
the DataStore names used in the QueryTree and the connection objects to
use for the evaluation.It can be null.
EvaluationException
public QueryTree getQueryTree()
getQueryTree
in interface QueryEvaluator
public long getCacheSize()
getCacheSize
in interface QueryEvaluator
public ConnectionResources getRequiredConnectionResources()
getRequiredConnectionResources
in interface QueryEvaluator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |