|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
CalculatedField |
addCalculatedField(java.lang.String name,
PType type,
Expression exp)
Creates and adds a CalculatedField to the TupleStructure of the QueryNode. |
PropagatedField |
addPropagatedField(java.lang.String name,
PType type,
QueryTreeField[] anc)
Creates and adds a PropagatedField to the TupleStructure of the QueryNode. |
QueryTree[] |
getChildren()
It retreives the array of the QueryTree used by this QueryNode. |
OptimizationMetaData |
getOptimizationMetaData()
It retrieves the meta information about the optimization. |
TupleLoader |
getTupleLoader()
Returns the TupleLoader currently associated with this QueryNode. |
short |
getType()
It retrieves the operation type of the current QueryNode. |
QueryTreeField |
removeField(java.lang.String name)
Removes a Field. |
QueryTreeField |
replace(QueryTreeField old,
QueryTreeField neo)
|
void |
setTupleLoader(TupleLoader loader)
Associates a TupleLoader with this QueryNode. |
void |
updateCalculatedField(java.lang.String name,
Expression e)
|
void |
updatePropagatedField(java.lang.String name,
QueryTreeField[] previous)
|
Methods inherited from interface org.objectweb.medor.query.api.FilteredQueryTree |
getQueryFilter, setQueryFilter |
Methods inherited from interface org.objectweb.medor.query.api.QueryTree |
getDistinct, getName, getOrderBy, getTupleStructure, setDistinct, setOrderBy |
Method Detail |
public PropagatedField addPropagatedField(java.lang.String name, PType type, QueryTreeField[] anc) throws MedorException
name
- is the name of the Field to be added. If null, the name is
computed from the origin Fields (parameter anc).type
- is the PType of the Field to be added. If null, the type is
computed from the origin Fields (parameter anc).anc
- are the origin Fields for the PropagatedField to be created.
MedorException
- when a Field with the same name already exists.public CalculatedField addCalculatedField(java.lang.String name, PType type, Expression exp) throws MedorException
name
- is the name of the Field to be added.type
- is the PType of the Field to be added.exp
- is the Expression for calculating the new Field.
MedorException
- when a Field with the same name already exists.public QueryTreeField removeField(java.lang.String name) throws MedorException
name
- is the name of the Field to be removed.
MedorException
- when no Field with such name exist.public QueryTree[] getChildren()
public short getType()
public OptimizationMetaData getOptimizationMetaData()
public TupleLoader getTupleLoader()
public void setTupleLoader(TupleLoader loader)
public void updatePropagatedField(java.lang.String name, QueryTreeField[] previous) throws MedorException
MedorException
public void updateCalculatedField(java.lang.String name, Expression e) throws MedorException
MedorException
public QueryTreeField replace(QueryTreeField old, QueryTreeField neo)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |