org.objectweb.medor.optim.lib
Class BasicQueryRewriter
java.lang.Object
org.objectweb.medor.optim.lib.BasicQueryRewriter
- QueryRewriter, QueryTransformer, RuleConfiguration
public class BasicQueryRewriter
extends java.lang.Object
This class implements the QueryRewriter interface AND also the
RuleConfiguration interface (the aim is to optimize the number of object).
The addDefaultRiles permits to assign the default rules in the right order.
- S. Chassande-Barrioz
BasicQueryRewriter() - It builds a BasicQueryRewriter with no rule
|
BasicQueryRewriter(ArrayList rules) - It builds a BasicQueryRewriter with a ArrayList of rules specified in
parameter.
|
BasicQueryRewriter(Collection rules) - It builds a BasicQueryRewriter with a Collection of rules specified in
parameter.
|
debug
protected boolean debug
rules
protected List rules
BasicQueryRewriter
public BasicQueryRewriter()
It builds a BasicQueryRewriter with no rule
BasicQueryRewriter
public BasicQueryRewriter(ArrayList rules)
It builds a BasicQueryRewriter with a ArrayList of rules specified in
parameter.
rules
- is the list of rules for this configuration
BasicQueryRewriter
public BasicQueryRewriter(Collection rules)
It builds a BasicQueryRewriter with a Collection of rules specified in
parameter.
rules
- is the list of rules for this configuration
addRule
public void addRule(RewriteRule rule)
Adds a rule to a configuration, together with parameters such
as the number of times the rules is applied (once, saturation)
- addRule in interface RuleConfiguration
rule
- the rule to be added.
getDefaultRules
public List getDefaultRules()
It adds the default Medor rules in this following order
getRules
public List getRules()
Gives the List of rules in the configuration
- getRules in interface RuleConfiguration
- the List of rules in the configuration