|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.relopt.RelOptRuleCall
org.eigenbase.relopt.volcano.VolcanoRuleCall
org.eigenbase.relopt.volcano.VolcanoRuleMatch
class VolcanoRuleMatch
A match of a rule to a particular set of target relational expressions, frozen in time.
| Field Summary | |
|---|---|
private double |
cachedImportance
|
private String |
digest
|
private RelSet |
targetSet
|
private RelSubset |
targetSubset
|
private VolcanoPlanner |
volcanoPlanner
|
| Fields inherited from class org.eigenbase.relopt.RelOptRuleCall |
|---|
rels, tracer |
| Constructor Summary | |
|---|---|
VolcanoRuleMatch(VolcanoPlanner volcanoPlanner,
RelOptRuleOperand operand0,
RelNode[] rels)
Creates a VolcanoRuleMatch. |
|
| Method Summary | |
|---|---|
(package private) void |
clearCachedImportance()
Clears the cached importance value of this rule match. |
private String |
computeDigest()
Computes a string describing this rule match. |
(package private) double |
computeImportance()
Computes the importance of this rule match. |
(package private) double |
getImportance()
Returns the importance of this rule. |
private RelSubset |
guessSubset()
Returns a guess as to which subset (that is equivalence class of relational expressions combined with a set of physical traits) the result of this rule will belong to. |
void |
recomputeDigest()
Recomputes the digest of this VolcanoRuleMatch. |
String |
toString()
|
| Methods inherited from class org.eigenbase.relopt.volcano.VolcanoRuleCall |
|---|
match, onMatch, transformTo |
| Methods inherited from class org.eigenbase.relopt.RelOptRuleCall |
|---|
getChildRels, getOperand0, getParents, getPlanner, getRels, getRule |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final RelSet targetSet
private RelSubset targetSubset
private String digest
private final VolcanoPlanner volcanoPlanner
private double cachedImportance
| Constructor Detail |
|---|
VolcanoRuleMatch(VolcanoPlanner volcanoPlanner,
RelOptRuleOperand operand0,
RelNode[] rels)
VolcanoRuleMatch.
operand0 - Primary operandrels - List of targets; copied by the constructor, so the client can
modify it later| Method Detail |
|---|
public String toString()
toString in class Objectvoid clearCachedImportance()
getImportance() is called.
double getImportance()
Calls computeImportance() the first time, thereafter uses a
cached value until clearCachedImportance() is called.
double computeImportance()
private String computeDigest()
public void recomputeDigest()
private RelSubset guessSubset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||