org.objectweb.medor.query.lib
Class Intersection

java.lang.Object
  extended byorg.objectweb.medor.lib.BasicTupleStructure
      extended byorg.objectweb.medor.query.lib.BasicQueryTree
          extended byorg.objectweb.medor.query.lib.BasicQueryNode
              extended byorg.objectweb.medor.query.lib.Intersection
All Implemented Interfaces:
Cloneable, java.lang.Cloneable, FilteredQueryTree, QueryNode, QueryTree, TupleStructure

public class Intersection
extends BasicQueryNode

Author:
Sebastien Chassande-Barrioz

Field Summary
 
Fields inherited from class org.objectweb.medor.query.lib.BasicQueryNode
children, filter, indexes, tupleLoader
 
Fields inherited from class org.objectweb.medor.query.lib.BasicQueryTree
debug, distinct, log, name, orderfields
 
Fields inherited from class org.objectweb.medor.lib.BasicTupleStructure
fields, name2field
 
Constructor Summary
Intersection(QueryTree leftQT, QueryTree rightQT, java.lang.String name, OptimizationMetaData optimizationMD)
           
 
Method Summary
 Expression getQueryFilter()
          Retrieves the filter associated to the QueryTree.
 short getType()
          It retrieves the operation type of the current QueryNode.
 void setQueryFilter(Expression f)
          The setQueryFilter method will be overwritten for implementations which do not support the operation.
 
Methods inherited from class org.objectweb.medor.query.lib.BasicQueryNode
addCalculatedField, addChild, addField, addPropagatedField, clone, getChildren, getDistinct, getFieldName, getName, getOptimizationMetaData, getTupleLoader, getTupleStructure, removeField, replace, setDistinct, setTupleLoader, updateCalculatedField, updateChildren, updatePropagatedField
 
Methods inherited from class org.objectweb.medor.query.lib.BasicQueryTree
getOrderBy, setOrderBy
 
Methods inherited from class org.objectweb.medor.lib.BasicTupleStructure
contains, contains, getField, getField, getFieldRank, getFields, getSize
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.medor.query.api.QueryTree
getOrderBy, setOrderBy
 

Constructor Detail

Intersection

public Intersection(QueryTree leftQT,
                    QueryTree rightQT,
                    java.lang.String name,
                    OptimizationMetaData optimizationMD)
             throws MedorException
Method Detail

setQueryFilter

public void setQueryFilter(Expression f)
Description copied from class: BasicQueryNode
The setQueryFilter method will be overwritten for implementations which do not support the operation.

Specified by:
setQueryFilter in interface FilteredQueryTree
Overrides:
setQueryFilter in class BasicQueryNode

getQueryFilter

public Expression getQueryFilter()
Description copied from interface: FilteredQueryTree
Retrieves the filter associated to the QueryTree. This filter is represented by an Expression.

Specified by:
getQueryFilter in interface FilteredQueryTree
Overrides:
getQueryFilter in class BasicQueryNode

getType

public short getType()
Description copied from interface: QueryNode
It retrieves the operation type of the current QueryNode.

Specified by:
getType in interface QueryNode
Specified by:
getType in class BasicQueryNode