|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.relopt.RelOptRule
net.sf.farrago.fennel.rel.FennelRenameRule
public class FennelRenameRule
FennelRenameRule is a rule for converting a rename-only Project into FennelRename.
| Field Summary | |
|---|---|
static FennelRenameRule |
instance
|
| Fields inherited from class org.eigenbase.relopt.RelOptRule |
|---|
ANY, description, operands |
| Constructor Summary | |
|---|---|
private |
FennelRenameRule()
Creates a FennelRenameRule. |
protected |
FennelRenameRule(RelOptRuleOperand operand)
Creates a FennelRenameRule with an explicit root operand. |
| Method Summary | |
|---|---|
CallingConvention |
getOutConvention()
Returns the calling convention of the result of firing this rule, null if not known. |
void |
onMatch(RelOptRuleCall call)
Receives notification about a rule match. |
protected FennelRenameRel |
renameChild(ProjectRel project)
If appropriate, creates a FennelRenameRel to replace an existing ProjectRel. |
| Methods inherited from class org.eigenbase.relopt.RelOptRule |
|---|
convert, equals, equals, getOperand, getOperands, getOutTrait, hashCode, matches, mergeTraitsAndConvert, mergeTraitsAndConvert, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final FennelRenameRule instance
| Constructor Detail |
|---|
private FennelRenameRule()
protected FennelRenameRule(RelOptRuleOperand operand)
operand - root operand, must not be null| Method Detail |
|---|
public CallingConvention getOutConvention()
RelOptRule
getOutConvention in class RelOptRulepublic void onMatch(RelOptRuleCall call)
RelOptRulecall.rels holds the set of relational
expressions which match the operands to the rule;
call.rels[0] is the root expression.
Typically a rule would check that the nodes are valid matches, creates
a new expression, then calls back RelOptRuleCall.transformTo(org.eigenbase.rel.RelNode) to
register the expression.
onMatch in class RelOptRulecall - Rule callRelOptRule.matches(RelOptRuleCall)protected FennelRenameRel renameChild(ProjectRel project)
project - the existing ProjectRel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||