|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBasicCloneable
org.objectweb.medor.lib.BasicTupleStructure
org.objectweb.medor.query.lib.BasicQueryTree
A BasicQueryNode is an implementation of QueryNode. It also implements QueryIndexGenerator and RWTupleStructure (it is its own TupleStructure).
Field Summary | |
protected java.util.Map |
annotations
|
protected boolean |
distinct
|
protected int[] |
indexes
Contains ranges of attribute to be projected from the tuple resulting of the concatenation of the tuples from the children QueryTrees. |
protected java.lang.String |
name
|
protected OrderField[] |
orderfields
|
Fields inherited from class org.objectweb.medor.lib.BasicTupleStructure |
fields, logger, name2field |
Constructor Summary | |
BasicQueryTree()
|
|
BasicQueryTree(java.lang.String _name)
|
Method Summary | |
java.lang.Object |
clone(java.lang.Object clone,
java.util.Map obj2clone)
|
java.util.Map |
getAnnotations()
|
boolean |
getDistinct()
Tests whether the results should be distinct or not. |
java.lang.String |
getName()
It returns the name of the query tree. |
OrderField[] |
getOrderBy()
Returns the array of OrderFields indicating how the result should be ordered. |
TupleStructure |
getTupleStructure()
Returns the TupleStructure associated to the QueryTree. |
void |
setDistinct(boolean distinct)
Indicates whether evaluating the QueryTree should return unique results (duplicate elimination) or not. |
void |
setOrderBy(OrderField[] orderfields)
Sets the OrderBy array of OrderFields. |
Methods inherited from class org.objectweb.medor.lib.BasicTupleStructure |
contains, contains, getField, getField, getFieldRank, getFields, getSize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.medor.api.Cloneable |
clone |
Field Detail |
protected java.lang.String name
protected int[] indexes
protected boolean distinct
protected OrderField[] orderfields
protected java.util.Map annotations
Constructor Detail |
public BasicQueryTree()
public BasicQueryTree(java.lang.String _name)
Method Detail |
public java.lang.Object clone(java.lang.Object clone, java.util.Map obj2clone) throws java.lang.CloneNotSupportedException
clone
in class BasicTupleStructure
java.lang.CloneNotSupportedException
public java.lang.String getName()
QueryTree
getName
in interface QueryTree
public TupleStructure getTupleStructure()
QueryTree
getTupleStructure
in interface QueryTree
public void setDistinct(boolean distinct) throws MedorException
QueryTree
The default should be that duplicates are not eliminated (distinct is false).
setDistinct
in interface QueryTree
distinct
- is true if duplicates should be eliminated, false
otherwise.
MedorException
- if the distinct operation is not supported.public boolean getDistinct()
QueryTree
getDistinct
in interface QueryTree
public void setOrderBy(OrderField[] orderfields)
QueryTree
This array indicates the fields by which the results should be ordered.
Like for filters assigned to QueryNodes, the Fields used for ordering must belong to children of the current QueryTree.
A noticeable exception is the case of RdbExpQueryLeaves, where ordering fields are fields of the QueryLeaf itself.
setOrderBy
in interface QueryTree
orderfields
- the array of OrderFields indicating the ordering in which
the result should be returned.public OrderField[] getOrderBy()
QueryTree
getOrderBy
in interface QueryTree
public java.util.Map getAnnotations()
getAnnotations
in interface AnnotationsHolder
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |