org.objectweb.medor.eval.lib
Class IteratifNodeEvaluatorFactory

java.lang.Object
  extended byorg.objectweb.medor.eval.lib.IteratifNodeEvaluatorFactory
All Implemented Interfaces:
NodeEvaluatorFactory

public class IteratifNodeEvaluatorFactory
extends java.lang.Object
implements NodeEvaluatorFactory

This class manage creation the iteratifs NodeEvaluators corresponding to QueryNodes. The method createNodeEvaluator is able to generate a NodeEvaluator for a Binary QueryNode and for Unary QueryNode, otherwise it throws a MedorException


Constructor Summary
IteratifNodeEvaluatorFactory()
           
 
Method Summary
 NodeEvaluator createNodeEvaluator(QueryNode node, NodeEvaluator[] subEvaluators, EvaluationMetaData evalMD)
          This methods creates a NodeEvaluator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratifNodeEvaluatorFactory

public IteratifNodeEvaluatorFactory()
Method Detail

createNodeEvaluator

public NodeEvaluator createNodeEvaluator(QueryNode node,
                                         NodeEvaluator[] subEvaluators,
                                         EvaluationMetaData evalMD)
                                  throws MedorException
Description copied from interface: NodeEvaluatorFactory
This methods creates a NodeEvaluator. It chooses the right implementation depending on the type of operation, the EvaluationMetaData associated to the QueryNode. It does not create NodeEvaluators for the children QueryNodes of the parameter QueryNode. It is up to the Evaluator to call the Factory for creating NodeEvaluators for the subnodes.

Specified by:
createNodeEvaluator in interface NodeEvaluatorFactory
Throws:
MedorException