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

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.UnaryExpressionOperator
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Operator>, Illustrable
Direct Known Subclasses:
PONegative, UnaryComparisonOperator

public abstract class UnaryExpressionOperator
extends ExpressionOperator

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.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
UnaryExpressionOperator(OperatorKey k)
           
UnaryExpressionOperator(OperatorKey k, int rp)
           
 
Method Summary
protected  void cloneHelper(UnaryExpressionOperator op)
           
 List<ExpressionOperator> getChildExpressions()
          Get child expression of this expression
 ExpressionOperator getExpr()
          Get the contained expression.
 void setExpr(ExpressionOperator e)
          Set the contained expression explicitly.
 void setInputAsExpr(PhysicalPlan plan)
          Set the contained expression to the be the input value.
 boolean supportsMultipleInputs()
          Indicates whether this operator supports multiple inputs.
 
Methods inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.ExpressionOperator
accumChild, clone, containUDF, getNextDataBag, setIllustrator, supportsMultipleOutputs, toString, visit
 
Methods inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator
addOriginalLocation, addOriginalLocation, attachInput, cloneHelper, detachInput, getAlias, getAliasString, getIllustrator, getInputs, getLogger, getNext, getNextBigDecimal, getNextBigInteger, getNextBoolean, getNextDataByteArray, getNextDateTime, getNextDouble, getNextFloat, getNextInteger, getNextLong, 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, name, regenerateProjectionMap, rewire, unsetProjectionMap
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.pig.pen.Illustrable
illustratorMarkup
 

Constructor Detail

UnaryExpressionOperator

public UnaryExpressionOperator(OperatorKey k,
                               int rp)

UnaryExpressionOperator

public UnaryExpressionOperator(OperatorKey k)
Method Detail

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.

setInputAsExpr

public void setInputAsExpr(PhysicalPlan plan)
Set the contained expression to the be the input value.


setExpr

public void setExpr(ExpressionOperator e)
Set the contained expression explicitly. This is mostly for testing.

Parameters:
e - Expression to contain.

getExpr

public ExpressionOperator getExpr()
Get the contained expression.

Returns:
contained expression.

cloneHelper

protected void cloneHelper(UnaryExpressionOperator op)

getChildExpressions

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

Specified by:
getChildExpressions in class ExpressionOperator


Copyright © 2007-2012 The Apache Software Foundation