org.apache.pig.newplan.logical.expression
Class LogicalExpressionPlan
java.lang.Object
org.apache.pig.newplan.BaseOperatorPlan
org.apache.pig.newplan.logical.expression.LogicalExpressionPlan
- All Implemented Interfaces:
- OperatorPlan
public class LogicalExpressionPlan
- extends BaseOperatorPlan
A plan containing LogicalExpressionOperators.
Methods inherited from class org.apache.pig.newplan.BaseOperatorPlan |
add, connect, connect, createSoftLink, disconnect, getOperators, getPredecessors, getSinks, getSoftLinkPredecessors, getSoftLinkSuccessors, getSources, getSuccessors, insertBetween, isConnected, isEqual, pathExists, remove, removeAndReconnect, removeSoftLink, replace, size, toString |
LogicalExpressionPlan
public LogicalExpressionPlan()
isEqual
public boolean isEqual(OperatorPlan other)
throws FrontendException
- Description copied from interface:
OperatorPlan
- This is like a shallow comparison.
Two plans are equal if they have equivalent operators and equivalent
structure.
- Specified by:
isEqual
in interface OperatorPlan
- Overrides:
isEqual
in class BaseOperatorPlan
- Parameters:
other
- object to compare
- Returns:
- boolean if both the plans are equivalent
- Throws:
FrontendException
explain
public void explain(PrintStream ps,
String format,
boolean verbose)
throws FrontendException
- Overrides:
explain
in class BaseOperatorPlan
- Throws:
FrontendException
merge
public List<Operator> merge(LogicalExpressionPlan lgExpPlan)
- Merge all nodes in lgExpPlan, keep the connections
- Parameters:
lgExpPlan
- plan to merge
- Returns:
- sources of the merged plan
deepCopy
public LogicalExpressionPlan deepCopy()
throws FrontendException
- Throws:
FrontendException
Copyright © 2012 The Apache Software Foundation