org.apache.pig.impl.logicalLayer
Class LOBinCond
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.LOBinCond
- All Implemented Interfaces:
- Serializable, Cloneable, Comparable<Operator>
public class LOBinCond
- extends ExpressionOperator
- 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, reconcileSchema, regenerateSchema, setAlias, setCanonicalNames, setPlan, setRequestedParallelism, setSchema, setSchemaComputed, setType, toString, unsetSchema |
LOBinCond
public LOBinCond(LogicalPlan plan,
OperatorKey k,
ExpressionOperator cond,
ExpressionOperator lhsOp,
ExpressionOperator rhsOp)
- Parameters:
plan
- Logical plan this operator is a part of.k
- Operator key to assign to this node.cond
- ExpressionOperator the expression specifying conditionlhsOp
- ExpressionOperator query to be executed when condition is truerhsOp
- ExpressionOperator query to be executed when condition is
false
getCond
public ExpressionOperator getCond()
getLhsOp
public ExpressionOperator getLhsOp()
getRhsOp
public ExpressionOperator getRhsOp()
setCond
public void setCond(ExpressionOperator cond)
setLhsOp
public void setLhsOp(ExpressionOperator op)
setRhsOp
public void setRhsOp(ExpressionOperator op)
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.
getSchema
public Schema getSchema()
throws FrontendException
- Description copied from class:
LogicalOperator
- Get a copy of the schema for the output of this operator.
- Overrides:
getSchema
in class ExpressionOperator
- Throws:
FrontendException
getFieldSchema
public Schema.FieldSchema getFieldSchema()
throws FrontendException
- Overrides:
getFieldSchema
in class ExpressionOperator
- Throws:
FrontendException
name
public String name()
- Specified by:
name
in class Operator<LOVisitor>
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