org.objectweb.medor.query.lib
Class Project

java.lang.Object
  |
  +--org.objectweb.medor.lib.BasicTupleStructure
        |
        +--org.objectweb.medor.query.lib.BasicQueryTree
              |
              +--org.objectweb.medor.query.lib.BasicQueryNode
                    |
                    +--org.objectweb.medor.query.lib.Project
All Implemented Interfaces:
Cloneable, java.lang.Cloneable, FilteredQueryTree, QueryNode, QueryTree, TupleStructure

public class Project
extends BasicQueryNode


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
distinct, name, orderfields
 
Fields inherited from class org.objectweb.medor.lib.BasicTupleStructure
fields, name2field
 
Constructor Summary
Project(java.lang.String[] fieldNames, QueryTree child, java.lang.String nodeName, OptimizationMetaData optimizationMD)
          Constructs a Project node from an array of fieldNames to be projected from a given (child) QueryTree.
Project(java.lang.String nodeName, OptimizationMetaData optimizationMD)
          Basic constructor.
 
Method Summary
 short getType()
          It retrieves the operation type of the current QueryNode.
 void setQueryFilter(Expression e)
          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, getQueryFilter, 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

Project

public Project(java.lang.String nodeName,
               OptimizationMetaData optimizationMD)
        throws MedorException
Basic constructor. The Fields must be added later.


Project

public Project(java.lang.String[] fieldNames,
               QueryTree child,
               java.lang.String nodeName,
               OptimizationMetaData optimizationMD)
        throws MedorException
Constructs a Project node from an array of fieldNames to be projected from a given (child) QueryTree.

Parameters:
fieldNames - is the array of field names for which the Field is to be projected.
child - is the child QueryTree on which the projection operates.
Method Detail

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

setQueryFilter

public void setQueryFilter(Expression e)
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
Parameters:
e - is the Expression representing the query filter of the current QueryNode.
See Also:
Expression