org.objectweb.medor.query.api

Interface BinaryUnaryQueryNodeFactory

Known Implementing Classes:
BasicBinaryUnaryQueryNodeFactory

public interface BinaryUnaryQueryNodeFactory

This interface is used for creating unary/binary QueryNodes.

Method Summary

QueryNode
createQueryNode(QueryTree leftChild, QueryTree rightChild, short operationType, Expression filter, TupleStructure tupleStructure)
QueryNode
createQueryNode(QueryTree child, short operationType, Expression filter, TupleStructure tupleStructure)
This methods creates the links between the children QueryTrees and the created QueryNode.

Method Details

createQueryNode

public QueryNode createQueryNode(QueryTree leftChild,
                                 QueryTree rightChild,
                                 short operationType,
                                 Expression filter,
                                 TupleStructure tupleStructure)
            throws QueryNodeException


createQueryNode

public QueryNode createQueryNode(QueryTree child,
                                 short operationType,
                                 Expression filter,
                                 TupleStructure tupleStructure)
            throws QueryNodeException
This methods creates the links between the children QueryTrees and the created QueryNode. It is used when building a QueryNode from existing QueryTrees. It typically verifies that all Fields defined in the tupleStructure are present in one of the children. It also propagates the indexes in the associated TupleLoaders for evaluation purposes.