|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.medor.lib.BasicTupleStructure | +--org.objectweb.medor.query.lib.MedorTCQueryLeaf
A TupleCollection is one of the DataStore that is queryable by Medor.
This class reprensents a QueryLeaf wich take its data from a Medor TupleCollection.
Field Summary |
Fields inherited from class org.objectweb.medor.lib.BasicTupleStructure |
fields, name2field |
Constructor Summary | |
MedorTCQueryLeaf(java.lang.String nodeName,
java.lang.String tcName,
TupleCollection tcData)
|
Method Summary | |
QueryTreeField |
addField(java.lang.String fieldName,
PType type,
Field tcField)
|
DataStore |
getDataStore()
|
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. |
Expression |
getQueryFilter()
|
TupleCollection |
getTupleCollection()
|
TupleLoader |
getTupleLoader()
|
TupleStructure |
getTupleStructure()
Returns the TupleStructure associated to the QueryTree. |
void |
setDistinct(boolean d)
Indicates whether evaluating the QueryTree should return unique results (duplicate elimination) or not. |
void |
setOrderBy(OrderField[] orderfields)
Sets the OrderBy array of OrderFields. |
void |
setQueryFilter(Expression filter)
|
void |
setTupleLoader(TupleLoader tl)
|
Methods inherited from class org.objectweb.medor.lib.BasicTupleStructure |
clone, contains, contains, getField, getField, getFieldRank, getFields, getSize |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MedorTCQueryLeaf(java.lang.String nodeName, java.lang.String tcName, TupleCollection tcData) throws MedorException
Method Detail |
public QueryTreeField addField(java.lang.String fieldName, PType type, Field tcField) throws MedorException
addField
in interface TCQueryLeaf
MedorException
public java.lang.String getName()
QueryTree
getName
in interface QueryTree
public TupleStructure getTupleStructure()
QueryTree
getTupleStructure
in interface QueryTree
public void setDistinct(boolean d) throws MedorException
QueryTree
The default should be that duplicates are not eliminated (distinct is false).
setDistinct
in interface QueryTree
d
- 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) throws MedorException
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.
MedorException
- if ordering is not supported.public OrderField[] getOrderBy()
QueryTree
getOrderBy
in interface QueryTree
public DataStore getDataStore()
getDataStore
in interface QueryLeaf
public TupleCollection getTupleCollection()
getTupleCollection
in interface TCQueryLeaf
public TupleLoader getTupleLoader()
getTupleLoader
in interface TCQueryLeaf
public void setTupleLoader(TupleLoader tl)
setTupleLoader
in interface TCQueryLeaf
public Expression getQueryFilter()
getQueryFilter
in interface TCQueryLeaf
public void setQueryFilter(Expression filter)
setQueryFilter
in interface TCQueryLeaf
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |