|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pig.newplan.Operator
public abstract class Operator
| Field Summary | |
|---|---|
protected Map<String,Object> |
annotations
|
protected int |
hashPrime
|
protected SourceLocation |
location
|
protected String |
name
|
protected OperatorPlan |
plan
|
| Constructor Summary | |
|---|---|
Operator(String n,
OperatorPlan p)
|
|
| Method Summary | |
|---|---|
abstract void |
accept(PlanVisitor v)
Accept a visitor at this node in the graph. |
void |
annotate(String key,
Object val)
Add an annotation to a node in the plan. |
Object |
getAnnotation(String key)
Look to see if a node is annotated. |
SourceLocation |
getLocation()
|
String |
getName()
|
OperatorPlan |
getPlan()
Get the plan associated with this operator. |
abstract boolean |
isEqual(Operator operator)
This is like a shallow equals comparison. |
Object |
removeAnnotation(String key)
Remove an annotation |
void |
setLocation(SourceLocation loc)
|
void |
setPlan(OperatorPlan p)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SourceLocation location
protected String name
protected OperatorPlan plan
protected Map<String,Object> annotations
protected final int hashPrime
| Constructor Detail |
|---|
public Operator(String n,
OperatorPlan p)
| Method Detail |
|---|
public abstract void accept(PlanVisitor v)
throws FrontendException
v - Visitor to accept.
FrontendExceptionpublic String getName()
public SourceLocation getLocation()
public void setLocation(SourceLocation loc)
public OperatorPlan getPlan()
public void annotate(String key,
Object val)
key - string name of this annotationval - value, as an Objectpublic Object getAnnotation(String key)
key - string name of annotation to look for
public Object removeAnnotation(String key)
key - the key of the annotation
public void setPlan(OperatorPlan p)
public abstract boolean isEqual(Operator operator)
throws FrontendException
operator -
FrontendException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||