org.apache.pig.impl.logicalLayer
Class BinaryExpressionOperator
java.lang.Object
org.apache.pig.impl.plan.Operator<LOVisitor>
org.apache.pig.impl.logicalLayer.LogicalOperator
org.apache.pig.impl.logicalLayer.ExpressionOperator
org.apache.pig.impl.logicalLayer.BinaryExpressionOperator
- All Implemented Interfaces:
- Serializable, Cloneable, Comparable<Operator>
- Direct Known Subclasses:
- LOAdd, LOAnd, LODivide, LOEqual, LOGreaterThan, LOGreaterThanEqual, LOLesserThan, LOLesserThanEqual, LOMod, LOMultiply, LONotEqual, LOOr, LORegexp, LOSubtract
public abstract class BinaryExpressionOperator
- extends ExpressionOperator
This abstract class represents the logical Binary Expression Operator
The binary operator has two operands and an operator. The format of
the expression is lhs_operand operator rhs_operand. The operator name
is assumed and can be inferred by the class name
- See Also:
- Serialized Form
Fields inherited from class org.apache.pig.impl.plan.Operator |
mKey |
Methods inherited from class org.apache.pig.impl.logicalLayer.LogicalOperator |
forceSchema, getAlias, getOperatorKey, getPlan, getRequestedParallelism, isPinnedOption, pinOption, reconcileSchema, regenerateSchema, setAlias, setCanonicalNames, setPlan, setRequestedParallelism, setSchema, setSchemaComputed, setType, toString, unsetSchema |
BinaryExpressionOperator
public BinaryExpressionOperator(LogicalPlan plan,
OperatorKey k,
int rp)
- Parameters:
plan
- Logical plan this operator is a part of.k
- Operator key to assign to this node.rp
- degree of requested parallelism with which to execute this
node.
BinaryExpressionOperator
public BinaryExpressionOperator(LogicalPlan plan,
OperatorKey k)
- Parameters:
plan
- Logical plan this operator is a part of.k
- Operator key to assign to this node.
getLhsOperand
public ExpressionOperator getLhsOperand()
getRhsOperand
public ExpressionOperator getRhsOperand()
visit
public void visit(LOVisitor v)
throws VisitorException
- Description copied from class:
LogicalOperator
- Visit this node with the provided visitor. This should only be called by
the visitor class itself, never directly.
- Specified by:
visit
in class LogicalOperator
- Parameters:
v
- Visitor to visit with.
- Throws:
VisitorException
- if the visitor has a problem.
supportsMultipleInputs
public boolean supportsMultipleInputs()
- Description copied from class:
Operator
- Indicates whether this operator supports multiple inputs.
- Specified by:
supportsMultipleInputs
in class Operator<LOVisitor>
- Returns:
- true if it does, otherwise false.
clone
protected Object clone()
throws CloneNotSupportedException
- Overrides:
clone
in class ExpressionOperator
- Throws:
CloneNotSupportedException
- See Also:
Do not use the clone method directly. Operators are cloned when logical plans
are cloned using {@link LogicalPlanCloner}
Copyright © ${year} The Apache Software Foundation