org.apache.pig.newplan.logical.expression
Class LogicalExpressionPlan

java.lang.Object
  extended by org.apache.pig.newplan.BaseOperatorPlan
      extended by org.apache.pig.newplan.logical.expression.LogicalExpressionPlan
All Implemented Interfaces:
OperatorPlan

public class LogicalExpressionPlan
extends BaseOperatorPlan

A plan containing LogicalExpressionOperators.


Field Summary
 
Fields inherited from class org.apache.pig.newplan.BaseOperatorPlan
fromEdges, log, ops, softFromEdges, softToEdges, toEdges
 
Constructor Summary
LogicalExpressionPlan()
           
 
Method Summary
 LogicalExpressionPlan deepCopy()
           
 void explain(PrintStream ps, String format, boolean verbose)
           
 boolean isEqual(OperatorPlan other)
          This is like a shallow comparison.
 List<Operator> merge(LogicalExpressionPlan lgExpPlan)
          Merge all nodes in lgExpPlan, keep the connections
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogicalExpressionPlan

public LogicalExpressionPlan()
Method Detail

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 © ${year} The Apache Software Foundation