|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.medor.optim.lib.BasicRule | +--org.objectweb.medor.optim.lib.DropUnusedProjFieldsRule
This class represents the rule to drop projected fields which are not used. This rule is to be called on the root of the tree to be optimized. The projected fields of the root node will not be deleted (they are requested by the user). As a remark, the user should be careful and not request unnecessary fields!
Nested Class Summary |
Nested classes inherited from class org.objectweb.medor.optim.lib.BasicRule |
BasicRule.ModifiedExpression |
Field Summary |
Fields inherited from class org.objectweb.medor.optim.lib.BasicRule |
debug, log |
Constructor Summary | |
DropUnusedProjFieldsRule()
|
Method Summary | |
QueryTree |
rewrite(QueryTree qt)
Relies on a Map which associates to each child the list of required Fields for that child. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DropUnusedProjFieldsRule()
Method Detail |
public QueryTree rewrite(QueryTree qt) throws MedorException
rewrite
in interface RewriteRule
rewrite
in class BasicRule
qt
- the QueryTree to be rewritten
MedorException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |