public abstract class Transformer
extends java.lang.Object
Constructor and Description |
---|
Transformer() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
check(OperatorPlan matched)
check if the transform should be done.
|
abstract OperatorPlan |
reportChanges()
Report what parts of the tree were transformed.
|
abstract void |
transform(OperatorPlan matched)
Transform the tree
|
public abstract boolean check(OperatorPlan matched) throws FrontendException
matched
- the sub-set of the plan that matches the pattern. This
subset has the same graph as the pattern, but the operators
point to the same objects as the plan to be matched.Transformer
FrontendException
public abstract void transform(OperatorPlan matched) throws FrontendException
matched
- the sub-set of the plan that matches the pattern. This
subset has the same graph as the pattern, but the operators
point to the same objects as the plan to be matched.Transformer
FrontendException
public abstract OperatorPlan reportChanges()
Copyright © 2007-2012 The Apache Software Foundation