org.apache.pig.experimental.logical.expression
Class BinCondExpression

java.lang.Object
  extended by org.apache.pig.experimental.plan.Operator
      extended by org.apache.pig.experimental.logical.expression.LogicalExpression
          extended by org.apache.pig.experimental.logical.expression.BinCondExpression

public class BinCondExpression
extends LogicalExpression


Field Summary
 
Fields inherited from class org.apache.pig.experimental.logical.expression.LogicalExpression
type, uid
 
Fields inherited from class org.apache.pig.experimental.plan.Operator
annotations, hashPrime, name, plan
 
Constructor Summary
BinCondExpression(OperatorPlan plan, byte b, LogicalExpression condition, LogicalExpression lhs, LogicalExpression rhs)
          Will add this operator to the plan and connect it to the left and right hand side operators and the condition operator
 
Method Summary
 void accept(PlanVisitor v)
          Accept a visitor at this node in the graph.
 LogicalExpression getCondition()
          Returns the operator which handles this condition
 LogicalExpression getLhs()
          Get the left hand side of this expression.
 LogicalExpression getRhs()
          Get the right hand side of this expression.
 boolean isEqual(Operator other)
          This is like a shallow equals comparison.
 
Methods inherited from class org.apache.pig.experimental.logical.expression.LogicalExpression
getNextUid, getType, getUid, neverUseForRealSetUid, resetNextUid, setUid, toString
 
Methods inherited from class org.apache.pig.experimental.plan.Operator
annotate, getAnnotation, getName, getPlan, removeAnnotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BinCondExpression

public BinCondExpression(OperatorPlan plan,
                         byte b,
                         LogicalExpression condition,
                         LogicalExpression lhs,
                         LogicalExpression rhs)
Will add this operator to the plan and connect it to the left and right hand side operators and the condition operator

Parameters:
plan - plan this operator is part of
b - Datatype of this expression
lhs - expression on its left hand side
rhs - expression on its right hand side
Method Detail

getCondition

public LogicalExpression getCondition()
                               throws IOException
Returns the operator which handles this condition

Returns:
expression which handles the condition
Throws:
IOException

getLhs

public LogicalExpression getLhs()
                         throws IOException
Get the left hand side of this expression.

Returns:
expression on the left hand side
Throws:
IOException

getRhs

public LogicalExpression getRhs()
                         throws IOException
Get the right hand side of this expression.

Returns:
expression on the right hand side
Throws:
IOException

accept

public void accept(PlanVisitor v)
            throws IOException
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:
IOException

isEqual

public boolean isEqual(Operator other)
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


Copyright © ${year} The Apache Software Foundation