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


Constructor Summary
MedorEvaluator(QueryTree query, long cacheSize)
           
 
Method Summary
 TupleCollection evaluate(ParameterOperand[] parameters, ConnectionResources ressources)
          The query to evaluate must be evaluable: compiled,...
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MedorEvaluator

public MedorEvaluator(QueryTree query,
                      long cacheSize)
               throws EvaluationException
Method Detail

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