|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Planner
is a query optimizer: it transforms a relational
expression into a semantically equivalent relational expression, according
to a given set of rules and a cost model.
Method Summary | |
void |
addCallingConvention(CallingConvention convention)
Registers a calling convention. |
void |
addRule(Rule rule)
Registers a rule. |
Rel |
changeConvention(Rel rel,
CallingConvention toConvention)
Changes a relational expression to an equivalent one of a different calling convention. |
Planner |
chooseDelegate()
Negotiates an appropriate planner to deal with distributed queries. |
Rel |
findBestExp()
Find the most efficient expression to implement this query. |
Rel |
getRoot()
|
Cost |
makeCost(double dRows,
double dCpu,
double dIo)
Create a cost object. |
Cost |
makeHugeCost()
Create a cost object representing infinite cost. |
Cost |
makeInfiniteCost()
Create a cost object representing infinite cost. |
Cost |
makeTinyCost()
Create a cost object representing a small positive cost. |
Cost |
makeZeroCost()
Create a cost object representing zero cost. |
Rel |
register(Rel rel,
Rel equivRel)
Registers a relational expression in the expression bank. |
void |
registerSchema(Schema schema)
Tells this planner that a schema exists. |
void |
setRoot(Rel rel)
|
Method Detail |
public void setRoot(Rel rel)
public Rel getRoot()
public Planner chooseDelegate()
public Rel findBestExp()
public Rel changeConvention(Rel rel, CallingConvention toConvention)
public Cost makeCost(double dRows, double dCpu, double dIo)
public Cost makeInfiniteCost()
public Cost makeHugeCost()
public Cost makeZeroCost()
public Cost makeTinyCost()
public Rel register(Rel rel, Rel equivRel)
rel
- Relational expression to registerequivRel
- Relational expression it is equivalent to (may be null)
public void registerSchema(Schema schema)
public void addRule(Rule rule)
public void addCallingConvention(CallingConvention convention)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |