org.objectweb.medor.eval.lib
Class MedorEvaluator
java.lang.Object
|
+--org.objectweb.medor.eval.lib.MedorEvaluator
- All Implemented Interfaces:
- QueryEvaluator
- public class MedorEvaluator
- extends java.lang.Object
- implements QueryEvaluator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MedorEvaluator
public MedorEvaluator(QueryTree query,
long cacheSize)
throws EvaluationException
getWrapperFactory
public WrapperFactory getWrapperFactory()
- Description copied from interface:
QueryEvaluator
- Returns the associated WrapperFactory. This is used to be able to
bind specific Wrappers to DataStore types.
- Specified by:
getWrapperFactory
in interface QueryEvaluator
- Returns:
- the associated WrapperFactory
evaluate
public TupleCollection evaluate(ParameterOperand[] parameters,
ConnectionResources ressources)
throws EvaluationException
- The query to evaluate must be evaluable: compiled,...
- Specified by:
evaluate
in interface QueryEvaluator
- Parameters:
parameters
- is a ConnectionResources containing associations between
the DataStore names used in the QueryTree and the connection objects to
use for the evaluation.
EvaluationException
setPrefetchBuffer
public void setPrefetchBuffer(PrefetchBuffer pb)
throws MedorException
- Requests the evaluator to index the resulting tuple collection by passing
along the structure for indexing the prefetched tuples.
- Specified by:
setPrefetchBuffer
in interface QueryEvaluator
- Parameters:
pb
- The PrefetchBuffer to be filled by the TupleCollection.
MedorException
getQueryTree
public QueryTree getQueryTree()
- Specified by:
getQueryTree
in interface QueryEvaluator
getCacheSize
public long getCacheSize()
- Specified by:
getCacheSize
in interface QueryEvaluator
getRequiredConnectionResources
public ConnectionResources getRequiredConnectionResources()
- Specified by:
getRequiredConnectionResources
in interface QueryEvaluator