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

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.Multiply
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Operator>, Illustrable

public class Multiply
extends BinaryExpressionOperator

See Also:
Serialized Form

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, 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
Multiply(OperatorKey k)
           
Multiply(OperatorKey k, int rp)
           
 
Method Summary
 Multiply clone()
          Make a deep copy of this operator.
protected
<T extends Number>
Result
genericGetNext(T number, byte dataType)
           
 Result getNext(Double d)
           
 Result getNext(Float f)
           
 Result getNext(Integer i)
           
 Result getNext(Long l)
           
protected
<T extends Number>
T
multiply(T a, T b, byte dataType)
           
 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, accumChild, accumChild, accumChild, accumChild, accumChild, accumChild, accumChild, accumChild, accumChild, accumChild, containUDF, getNext, setIllustrator, supportsMultipleOutputs
 
Methods inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator
attachInput, cloneHelper, detachInput, getAlias, getAliasString, getDummy, getIllustrator, getInputs, getLogger, getNext, getNext, getNext, getNext, getNext, 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

Multiply

public Multiply(OperatorKey k)

Multiply

public Multiply(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>

multiply

protected <T extends Number> T multiply(T a,
                                        T b,
                                        byte dataType)
                             throws ExecException
Throws:
ExecException

genericGetNext

protected <T extends Number> Result genericGetNext(T number,
                                                   byte dataType)
                         throws ExecException
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

clone

public Multiply 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