org.apache.pig.backend.hadoop.executionengine.physicalLayer.plans
Class PatternNode

java.lang.Object
  extended by org.apache.pig.newplan.Operator
      extended by org.apache.pig.backend.hadoop.executionengine.physicalLayer.plans.PatternNode

public class PatternNode
extends Operator

Used for finding/representing a pattern in the plan This class represents a node in the pattern


Field Summary
 
Fields inherited from class org.apache.pig.newplan.Operator
annotations, hashPrime, location, name, plan
 
Constructor Summary
PatternNode(OperatorPlan p)
           
 
Method Summary
 void accept(PlanVisitor v)
          Accept a visitor at this node in the graph.
 Class<?> getClassName()
           
 Object getMatch()
           
 boolean isEqual(Operator operator)
          This is like a shallow equals comparison.
 boolean isLeafNode()
           
 boolean isSourceNode()
           
 void setClassName(Class<?> className)
           
 void setLeafNode(boolean isLeafNode)
          Set isLeafNode to true if the node must be a source
 void setMatch(Object match)
           
 void setSourceNode(boolean isSourceNode)
          Set isSourceNode to true if the node must be a source
 String toString()
           
 
Methods inherited from class org.apache.pig.newplan.Operator
annotate, getAnnotation, getLocation, getName, getPlan, removeAnnotation, setLocation, setPlan
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PatternNode

public PatternNode(OperatorPlan p)
Method Detail

isLeafNode

public boolean isLeafNode()
Returns:
the isLeafNode

setLeafNode

public void setLeafNode(boolean isLeafNode)
Set isLeafNode to true if the node must be a source

Parameters:
isLeafNode -

isSourceNode

public boolean isSourceNode()
Returns:
the isSourceNode

setSourceNode

public void setSourceNode(boolean isSourceNode)
Set isSourceNode to true if the node must be a source

Parameters:
isSourceNode -

getClassName

public Class<?> getClassName()
Returns:
the className

setClassName

public void setClassName(Class<?> className)
Parameters:
className - the className to set

getMatch

public Object getMatch()
Returns:
the match

setMatch

public void setMatch(Object match)
Parameters:
match - the match to set

accept

public void accept(PlanVisitor v)
            throws FrontendException
Description copied from class: Operator
Accept a visitor at this node in the graph.

Specified by:
accept in class Operator
Parameters:
v - Visitor to accept.
Throws:
FrontendException

isEqual

public boolean isEqual(Operator operator)
                throws FrontendException
Description copied from class: Operator
This is like a shallow equals comparison. It returns true if two operators have equivalent properties even if they are different objects. Here properties mean equivalent plan and equivalent name.

Specified by:
isEqual in class Operator
Returns:
true if two object have equivalent properties, else false
Throws:
FrontendException

toString

public String toString()
Overrides:
toString in class Object


Copyright © ${year} The Apache Software Foundation