org.objectweb.medor.eval.api
Interface QueryEvaluator

All Known Implementing Classes:
MedorEvaluator

public interface QueryEvaluator

This interface represents the MEDOR evaluator.


Method Summary
 TupleCollection evaluate(ParameterOperand[] parameters, ConnectionResources ressources)
           
 long getCacheSize()
           
 QueryTree getQueryTree()
           
 ConnectionResources getRequiredConnectionResources()
           
 WrapperFactory getWrapperFactory()
          Returns the associated WrapperFactory.
 void setPrefetchBuffer(PrefetchBuffer pb)
          Requests the evaluator to index the resulting tuple collection by passing along the structure for indexing the prefetched tuples.
 

Method Detail

evaluate

public TupleCollection evaluate(ParameterOperand[] parameters,
                                ConnectionResources ressources)
                         throws EvaluationException
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.

Parameters:
pb - The PrefetchBuffer to be filled by the TupleCollection.
MedorException

getRequiredConnectionResources

public ConnectionResources getRequiredConnectionResources()

getCacheSize

public long getCacheSize()

getQueryTree

public QueryTree getQueryTree()

getWrapperFactory

public WrapperFactory getWrapperFactory()
Returns the associated WrapperFactory. This is used to be able to bind specific Wrappers to DataStore types.

Returns:
the associated WrapperFactory