|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A SaffronPlanner
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(VolcanoRule rule)
Registers a rule. |
SaffronRel |
changeConvention(SaffronRel rel,
CallingConvention toConvention)
Changes a relational expression to an equivalent one of a different calling convention. |
SaffronPlanner |
chooseDelegate()
Negotiates an appropriate planner to deal with distributed queries. |
SaffronRel |
findBestExp()
Find the most efficient expression to implement this query. |
SaffronRel |
getRoot()
|
PlanCost |
makeCost(double dRows,
double dCpu,
double dIo)
Create a cost object. |
PlanCost |
makeHugeCost()
Create a cost object representing an enormous non-infinite cost. |
PlanCost |
makeInfiniteCost()
Create a cost object representing infinite cost. |
PlanCost |
makeTinyCost()
Create a cost object representing a small positive cost. |
PlanCost |
makeZeroCost()
Create a cost object representing zero cost. |
SaffronRel |
register(SaffronRel rel,
SaffronRel equivRel)
Registers a relational expression in the expression bank. |
void |
registerSchema(SaffronSchema schema)
Tells this planner that a schema exists. |
void |
setRoot(SaffronRel rel)
|
Method Detail |
public void setRoot(SaffronRel rel)
public SaffronRel getRoot()
public void addCallingConvention(CallingConvention convention)
public void addRule(VolcanoRule rule)
public SaffronRel changeConvention(SaffronRel rel, CallingConvention toConvention)
public SaffronPlanner chooseDelegate()
public SaffronRel findBestExp()
public PlanCost makeCost(double dRows, double dCpu, double dIo)
public PlanCost makeHugeCost()
public PlanCost makeInfiniteCost()
public PlanCost makeTinyCost()
public PlanCost makeZeroCost()
public SaffronRel register(SaffronRel rel, SaffronRel equivRel)
rel
- Relational expression to registerequivRel
- Relational expression it is equivalent to (may be null)
public void registerSchema(SaffronSchema schema)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |