org.apache.pig.newplan.logical.rules
Class GroupByConstParallelSetter.GroupAllParallelSetterTransformer
java.lang.Object
org.apache.pig.newplan.optimizer.Transformer
org.apache.pig.newplan.logical.rules.GroupByConstParallelSetter.GroupAllParallelSetterTransformer
- Enclosing class:
- GroupByConstParallelSetter
public class GroupByConstParallelSetter.GroupAllParallelSetterTransformer
- extends Transformer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroupByConstParallelSetter.GroupAllParallelSetterTransformer
public GroupByConstParallelSetter.GroupAllParallelSetterTransformer()
check
public boolean check(OperatorPlan matched)
throws FrontendException
- Description copied from class:
Transformer
- check if the transform should be done. If this is being called then
the pattern matches, but there may be other criteria that must be met
as well.
- Specified by:
check
in class Transformer
- Parameters:
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.
- Returns:
- true if the transform should be done.
- Throws:
FrontendException
transform
public void transform(OperatorPlan plan)
throws FrontendException
- Description copied from class:
Transformer
- Transform the tree
- Specified by:
transform
in class Transformer
- Parameters:
plan
- 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.
- Throws:
FrontendException
reportChanges
public OperatorPlan reportChanges()
- Description copied from class:
Transformer
- Report what parts of the tree were transformed. This is so that
listeners can know which part of the tree to visit and modify
schemas, annotations, etc. So any nodes that were removed need
will not be in this plan, only nodes that were added or moved.
- Specified by:
reportChanges
in class Transformer
- Returns:
- OperatorPlan that describes just the changed nodes.
Copyright © 2007-2012 The Apache Software Foundation