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

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.BinaryExpressionOperator
                  extended by org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.Add
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Operator>, Illustrable

public class Add
extends BinaryExpressionOperator

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator
PhysicalOperator.OriginalLocation
 
Field Summary
 
Fields inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.BinaryExpressionOperator
lhs, rhs
 
Fields inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator
alias, illustrator, input, inputAttached, inputs, lineageTracer, outputs, parentPlan, pigLogger, requestedParallelism, res, resultType
 
Fields inherited from class org.apache.pig.impl.plan.Operator
mKey
 
Constructor Summary
Add(OperatorKey k)
           
Add(OperatorKey k, int rp)
           
 
Method Summary
protected  Number add(Number a, Number b, byte dataType)
           
 Add clone()
          Make a deep copy of this operator.
protected  Result genericGetNext(byte dataType)
           
 Result getNextBigDecimal()
           
 Result getNextBigInteger()
           
 Result getNextDouble()
           
 Result getNextFloat()
           
 Result getNextInteger()
           
 Result getNextLong()
           
 String name()
           
 void visit(PhyPlanVisitor v)
          Visit this node with the provided visitor.
 
Methods inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.BinaryExpressionOperator
cloneHelper, getChildExpressions, getLhs, getRhs, illustratorMarkup, setLhs, setRhs, supportsMultipleInputs
 
Methods inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.ExpressionOperator
accumChild, containUDF, getNextDataBag, setIllustrator, supportsMultipleOutputs, toString
 
Methods inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator
addOriginalLocation, addOriginalLocation, attachInput, cloneHelper, detachInput, getAlias, getAliasString, getIllustrator, getInputs, getLogger, getNext, getNextBoolean, getNextDataByteArray, getNextDateTime, getNextMap, getNextString, getNextTuple, getOriginalLocations, getPigLogger, getReporter, getRequestedParallelism, getResultType, isAccumStarted, isAccumulative, isBlocking, isInputAttached, processInput, reset, setAccumEnd, setAccumStart, setAccumulative, setInputs, setParentPlan, setPigLogger, setReporter, setRequestedParallelism, setResultType
 
Methods inherited from class org.apache.pig.impl.plan.Operator
compareTo, equals, getOperatorKey, getProjectionMap, hashCode, regenerateProjectionMap, rewire, unsetProjectionMap
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Add

public Add(OperatorKey k)

Add

public Add(OperatorKey k,
           int rp)
Method Detail

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>

add

protected Number add(Number a,
                     Number b,
                     byte dataType)
              throws ExecException
Throws:
ExecException

genericGetNext

protected Result genericGetNext(byte dataType)
                         throws ExecException
Throws:
ExecException

getNextDouble

public Result getNextDouble()
                     throws ExecException
Overrides:
getNextDouble in class PhysicalOperator
Throws:
ExecException

getNextFloat

public Result getNextFloat()
                    throws ExecException
Overrides:
getNextFloat in class PhysicalOperator
Throws:
ExecException

getNextInteger

public Result getNextInteger()
                      throws ExecException
Overrides:
getNextInteger in class PhysicalOperator
Throws:
ExecException

getNextLong

public Result getNextLong()
                   throws ExecException
Overrides:
getNextLong in class PhysicalOperator
Throws:
ExecException

getNextBigInteger

public Result getNextBigInteger()
                         throws ExecException
Overrides:
getNextBigInteger in class PhysicalOperator
Throws:
ExecException

getNextBigDecimal

public Result getNextBigDecimal()
                         throws ExecException
Overrides:
getNextBigDecimal in class PhysicalOperator
Throws:
ExecException

clone

public Add 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}


Copyright © 2007-2012 The Apache Software Foundation