|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.impl.plan.Operator<RulePlanVisitor>
org.apache.pig.impl.plan.optimizer.RuleOperator
public class RuleOperator
Parent for all Logical operators.
Nested Class Summary | |
---|---|
static class |
RuleOperator.NodeType
|
Field Summary |
---|
Fields inherited from class org.apache.pig.impl.plan.Operator |
---|
mKey |
Constructor Summary | |
---|---|
RuleOperator(Class clazz,
OperatorKey k)
|
|
RuleOperator(Class clazz,
RuleOperator.NodeType nodeType,
OperatorKey k)
|
Method Summary | |
---|---|
protected Object |
clone()
|
Class |
getNodeClass()
Get the node class of this operator. |
RuleOperator.NodeType |
getNodeType()
Get the node type of this operator. |
String |
name()
|
void |
setNodeType(RuleOperator.NodeType type)
Set the node type of this rule operator. |
boolean |
supportsMultipleInputs()
Indicates whether this operator supports multiple inputs. |
boolean |
supportsMultipleOutputs()
Indicates whether this operator supports multiple outputs. |
String |
toString()
|
void |
visit(RulePlanVisitor v)
Visit this node with the provided visitor. |
Methods inherited from class org.apache.pig.impl.plan.Operator |
---|
compareTo, equals, getOperatorKey, hashCode |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RuleOperator(Class clazz, OperatorKey k)
clazz
- Class type of this node, e.g.: LOFilter.classk
- Operator key to assign to this node.public RuleOperator(Class clazz, RuleOperator.NodeType nodeType, OperatorKey k)
clazz
- Class type of this node, e.g.: LOFilter.classnodeType
- Node type of this nodek
- Operator key to assign to this node.Method Detail |
---|
public final void setNodeType(RuleOperator.NodeType type)
type
- Node type to set this operator to.public RuleOperator.NodeType getNodeType()
public Class getNodeClass()
public String toString()
toString
in class Operator<RulePlanVisitor>
public void visit(RulePlanVisitor v) throws VisitorException
visit
in class Operator<RulePlanVisitor>
v
- Visitor to visit with.
VisitException
- if the visitor has a problem.
VisitorException
- if the visitor has a problem.public boolean supportsMultipleOutputs()
Operator
supportsMultipleOutputs
in class Operator<RulePlanVisitor>
public boolean supportsMultipleInputs()
Operator
supportsMultipleInputs
in class Operator<RulePlanVisitor>
protected Object clone() throws CloneNotSupportedException
clone
in class Operator<RulePlanVisitor>
CloneNotSupportedException
Do not use the clone method directly. Operators are cloned when logical plans
are cloned using {@link LogicalPlanCloner}
public String name()
name
in class Operator<RulePlanVisitor>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |