org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators
Class POBinCond

java.lang.Object
  extended by org.apache.pig.impl.plan.Operator<PhyPlanVisitor>
      extended by org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator
          extended by org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.ExpressionOperator
              extended by org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.POBinCond
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Operator>, Illustrable

public class POBinCond
extends ExpressionOperator

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator
alias, dummyBag, dummyBool, dummyDBA, dummyDouble, dummyFloat, dummyInt, dummyLong, dummyMap, dummyString, dummyTuple, illustrator, input, inputAttached, inputs, lineageTracer, outputs, parentPlan, pigLogger, reporter, requestedParallelism, res, resultType
 
Fields inherited from class org.apache.pig.impl.plan.Operator
mKey
 
Constructor Summary
POBinCond(OperatorKey k)
           
POBinCond(OperatorKey k, int rp)
           
POBinCond(OperatorKey k, int rp, ExpressionOperator cond, ExpressionOperator lhs, ExpressionOperator rhs)
           
 
Method Summary
 void attachInput(Tuple t)
          Shorts the input path of this operator by providing the input tuple directly
 POBinCond clone()
          Make a deep copy of this operator.
 Result genericGetNext(Object obj, byte dataType)
           
 List<ExpressionOperator> getChildExpressions()
          Get child expressions of this expression
 ExpressionOperator getCond()
          Get condition
 ExpressionOperator getLhs()
          Get left expression
 Result getNext(Boolean b)
           
 Result getNext(DataBag db)
           
 Result getNext(DataByteArray ba)
           
 Result getNext(Double d)
           
 Result getNext(Float f)
           
 Result getNext(Integer i)
           
 Result getNext(Long l)
           
 Result getNext(Map m)
           
 Result getNext(String s)
           
 Result getNext(Tuple t)
           
 ExpressionOperator getRhs()
          Get right expression
 Tuple illustratorMarkup(Object in, Object out, int eqClassIndex)
          input tuple mark up to be illustrate-able
 String name()
           
 void setCond(ExpressionOperator condOp)
           
 void setLhs(ExpressionOperator lhs)
           
 void setRhs(ExpressionOperator rhs)
           
 boolean supportsMultipleInputs()
          Indicates whether this operator supports multiple inputs.
 void visit(PhyPlanVisitor v)
          Visit this node with the provided visitor.
 
Methods inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.ExpressionOperator
accumChild, accumChild, accumChild, accumChild, accumChild, accumChild, accumChild, accumChild, accumChild, accumChild, accumChild, containUDF, setIllustrator, supportsMultipleOutputs
 
Methods inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator
cloneHelper, detachInput, getAlias, getAliasString, getDummy, getIllustrator, getInputs, getLogger, getNext, getPigLogger, getRequestedParallelism, getResultType, isAccumStarted, isAccumulative, isBlocking, isInputAttached, processInput, reset, setAccumEnd, setAccumStart, setAccumulative, setAlias, setInputs, setParentPlan, setPigLogger, setReporter, setRequestedParallelism, setResultType
 
Methods inherited from class org.apache.pig.impl.plan.Operator
compareTo, equals, getOperatorKey, getProjectionMap, hashCode, regenerateProjectionMap, rewire, toString, unsetProjectionMap
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

POBinCond

public POBinCond(OperatorKey k)

POBinCond

public POBinCond(OperatorKey k,
                 int rp)

POBinCond

public POBinCond(OperatorKey k,
                 int rp,
                 ExpressionOperator cond,
                 ExpressionOperator lhs,
                 ExpressionOperator rhs)
Method Detail

genericGetNext

public Result genericGetNext(Object obj,
                             byte dataType)
                      throws ExecException
Throws:
ExecException

getNext

public Result getNext(Boolean b)
               throws ExecException
Overrides:
getNext in class PhysicalOperator
Throws:
ExecException

getNext

public Result getNext(DataBag db)
               throws ExecException
Overrides:
getNext in class ExpressionOperator
Throws:
ExecException

getNext

public Result getNext(DataByteArray ba)
               throws ExecException
Overrides:
getNext in class PhysicalOperator
Throws:
ExecException

getNext

public Result getNext(Double d)
               throws ExecException
Overrides:
getNext in class PhysicalOperator
Throws:
ExecException

getNext

public Result getNext(Float f)
               throws ExecException
Overrides:
getNext in class PhysicalOperator
Throws:
ExecException

getNext

public Result getNext(Integer i)
               throws ExecException
Overrides:
getNext in class PhysicalOperator
Throws:
ExecException

getNext

public Result getNext(Long l)
               throws ExecException
Overrides:
getNext in class PhysicalOperator
Throws:
ExecException

getNext

public Result getNext(Map m)
               throws ExecException
Overrides:
getNext in class PhysicalOperator
Throws:
ExecException

getNext

public Result getNext(String s)
               throws ExecException
Overrides:
getNext in class PhysicalOperator
Throws:
ExecException

getNext

public Result getNext(Tuple t)
               throws ExecException
Overrides:
getNext in class PhysicalOperator
Throws:
ExecException

visit

public void visit(PhyPlanVisitor v)
           throws VisitorException
Description copied from class: Operator
Visit this node with the provided visitor. This should only be called by the visitor class itself, never directly.

Specified by:
visit in class ExpressionOperator
Parameters:
v - Visitor to visit with.
Throws:
VisitorException - if the visitor has a problem.

name

public String name()
Specified by:
name in class Operator<PhyPlanVisitor>

attachInput

public void attachInput(Tuple t)
Description copied from class: PhysicalOperator
Shorts the input path of this operator by providing the input tuple directly

Overrides:
attachInput in class PhysicalOperator
Parameters:
t - - The tuple that should be used as input

setCond

public void setCond(ExpressionOperator condOp)

setRhs

public void setRhs(ExpressionOperator rhs)

setLhs

public void setLhs(ExpressionOperator lhs)

getCond

public ExpressionOperator getCond()
Get condition


getRhs

public ExpressionOperator getRhs()
Get right expression


getLhs

public ExpressionOperator getLhs()
Get left expression


supportsMultipleInputs

public boolean supportsMultipleInputs()
Description copied from class: Operator
Indicates whether this operator supports multiple inputs.

Specified by:
supportsMultipleInputs in class Operator<PhyPlanVisitor>
Returns:
true if it does, otherwise false.

clone

public POBinCond clone()
                throws CloneNotSupportedException
Description copied from class: ExpressionOperator
Make a deep copy of this operator. This is declared here to make it possible to call clone on ExpressionOperators.

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}

getChildExpressions

public List<ExpressionOperator> getChildExpressions()
Get child expressions of this expression

Specified by:
getChildExpressions in class ExpressionOperator

illustratorMarkup

public Tuple illustratorMarkup(Object in,
                               Object out,
                               int eqClassIndex)
Description copied from interface: Illustrable
input tuple mark up to be illustrate-able

Parameters:
in - input tuple
out - output tuple before wrapped in ExampleTuple
eqClassIndex - index into equivalence classes in illustrator
Returns:
tuple


Copyright © ${year} The Apache Software Foundation