org.objectweb.medor.eval.lib
Class BinaryIteratifNodeEvaluator

java.lang.Object
  extended byorg.objectweb.medor.eval.lib.BinaryIteratifNodeEvaluator
All Implemented Interfaces:
NodeEvaluator

public class BinaryIteratifNodeEvaluator
extends java.lang.Object
implements NodeEvaluator


Constructor Summary
BinaryIteratifNodeEvaluator(QueryNode query, NodeEvaluator leftNodeEvaluator, NodeEvaluator rightNodeEvaluator, EvaluationMetaData evaluationMetaData)
           
 
Method Summary
 TupleCollection fetchData(ParameterOperand[] parameters)
          This method executes the query on the underlying node.
 long getCacheSize()
           
 EvaluationMetaData getEvaluationMetaData()
          Returns the evaluation meta data associated with this node evaluator.
 QueryNode getQueryNode()
          Returns the QueryNode to which the NodeEvaluator is attached.
 boolean linkChildren()
          Opens the links between the current NodeEvaluator and the NodeEvaluators of the children QueryTrees for pipelining operations.
 void setCacheSize(long cacheSize)
           
 void setPrefetchBuffer(PrefetchBuffer pb)
          Associates a PrefetchBuffer to be filled by the collection computed by this evaluator.
 boolean unlinkChildren()
          Closes the links between the current NodeEvaluator and the NodeEvaluators of the children QueryTrees for pipelining operations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryIteratifNodeEvaluator

public BinaryIteratifNodeEvaluator(QueryNode query,
                                   NodeEvaluator leftNodeEvaluator,
                                   NodeEvaluator rightNodeEvaluator,
                                   EvaluationMetaData evaluationMetaData)
Method Detail

linkChildren

public boolean linkChildren()
Description copied from interface: NodeEvaluator
Opens the links between the current NodeEvaluator and the NodeEvaluators of the children QueryTrees for pipelining operations. TODO complete comments

Specified by:
linkChildren in interface NodeEvaluator

unlinkChildren

public boolean unlinkChildren()
Description copied from interface: NodeEvaluator
Closes the links between the current NodeEvaluator and the NodeEvaluators of the children QueryTrees for pipelining operations. TODO complete comments

Specified by:
unlinkChildren in interface NodeEvaluator

fetchData

public TupleCollection fetchData(ParameterOperand[] parameters)
                          throws MedorException
Description copied from interface: NodeEvaluator
This method executes the query on the underlying node. It controls the evaluation locally for this node. It returns the TupleCollection containing the result of the execution.

Specified by:
fetchData in interface NodeEvaluator
Throws:
MedorException

getCacheSize

public long getCacheSize()
Specified by:
getCacheSize in interface NodeEvaluator

setCacheSize

public void setCacheSize(long cacheSize)
Specified by:
setCacheSize in interface NodeEvaluator

getQueryNode

public QueryNode getQueryNode()
Description copied from interface: NodeEvaluator
Returns the QueryNode to which the NodeEvaluator is attached.

Specified by:
getQueryNode in interface NodeEvaluator

getEvaluationMetaData

public EvaluationMetaData getEvaluationMetaData()
Description copied from interface: NodeEvaluator
Returns the evaluation meta data associated with this node evaluator.

Specified by:
getEvaluationMetaData in interface NodeEvaluator
Returns:
the associated EvaluationMetaData

setPrefetchBuffer

public void setPrefetchBuffer(PrefetchBuffer pb)
                       throws MedorException
Description copied from interface: NodeEvaluator
Associates a PrefetchBuffer to be filled by the collection computed by this evaluator.

Specified by:
setPrefetchBuffer in interface NodeEvaluator
Parameters:
pb - The PrefetchBuffer to be filled.
Throws:
MedorException