org.objectweb.medor.eval.lib
Class AbstractQueryEvaluator

java.lang.Object
  extended byorg.objectweb.medor.eval.lib.AbstractQueryEvaluator
All Implemented Interfaces:
QueryEvaluator
Direct Known Subclasses:
DeleteEvaluator, SelectEvaluator

public abstract class AbstractQueryEvaluator
extends java.lang.Object
implements QueryEvaluator


Field Summary
protected  QueryTree query
          The query tree which must be evaluated
protected  WrapperFactory wrapperFactory
          The factory of wrappers (leaf evaluator)
 
Constructor Summary
AbstractQueryEvaluator(QueryTree query)
           
 
Method Summary
static TupleCollection getMemoryTupleCollection(VariableOperand[] values)
           
 QueryTree getQueryTree()
           
 WrapperFactory getWrapperFactory()
          Returns the associated WrapperFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.medor.eval.api.QueryEvaluator
evaluate, evaluate, getCacheSize, getRequiredConnectionResources
 

Field Detail

query

protected QueryTree query
The query tree which must be evaluated


wrapperFactory

protected WrapperFactory wrapperFactory
The factory of wrappers (leaf evaluator)

Constructor Detail

AbstractQueryEvaluator

public AbstractQueryEvaluator(QueryTree query)
                       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

getQueryTree

public QueryTree getQueryTree()
Specified by:
getQueryTree in interface QueryEvaluator
Returns:
the evaluable (optimized) query tree associated to the current QueryEvaluator.

getMemoryTupleCollection

public static TupleCollection getMemoryTupleCollection(VariableOperand[] values)
                                                throws MedorException
Throws:
MedorException