org.apache.pig.backend.hadoop.executionengine.physicalLayer.plans
Class PatternNode
java.lang.Object
org.apache.pig.newplan.Operator
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
PatternNode
public PatternNode(OperatorPlan p)
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 © 2007-2012 The Apache Software Foundation