class VolcanoRuleMatch extends VolcanoRuleCall
| Modifier and Type | Field and Description |
|---|---|
private double |
cachedImportance |
private String |
digest |
private RelSet |
targetSet |
private RelSubset |
targetSubset |
volcanoPlannerid, LOGGER, nodeInputs, operand0, rels, rule| Constructor and Description |
|---|
VolcanoRuleMatch(VolcanoPlanner volcanoPlanner,
RelOptRuleOperand operand0,
RelNode[] rels,
Map<RelNode,List<RelNode>> nodeInputs)
Creates a
VolcanoRuleMatch. |
| Modifier and Type | Method and Description |
|---|---|
private static <E> boolean |
allNotNull(E[] es,
Litmus litmus)
Returns whether all elements of a given array are not-null;
fails if any are null.
|
(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() |
match, onMatch, transformTobuilder, getChildRels, getMetadataQuery, getOperand0, getParents, getPlanner, getRelList, getRels, getRule, rel, setChildRels, transformToprivate final RelSet targetSet
private RelSubset targetSubset
private String digest
private double cachedImportance
VolcanoRuleMatch(VolcanoPlanner volcanoPlanner, RelOptRuleOperand operand0, RelNode[] rels, Map<RelNode,List<RelNode>> nodeInputs)
VolcanoRuleMatch.operand0 - Primary operandrels - List of targets; copied by the constructor, so the client
can modify it laternodeInputs - Map from relational expressions to their inputsvoid 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()
private static <E> boolean allNotNull(E[] es,
Litmus litmus)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.