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

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.UnaryExpression
Direct Known Subclasses:
CastExpression, IsNullExpression, NegativeExpression, NotExpression

public abstract class UnaryExpression
extends LogicalExpression

Superclass for all unary expressions


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
UnaryExpression(String name, OperatorPlan plan, byte b, LogicalExpression exp)
          Will add this operator to the plan and connect it to the left and right hand side operators.
 
Method Summary
 LogicalExpression getExpression()
          Get the expression that this unary expression operators on.
 
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
accept, annotate, getAnnotation, getName, getPlan, isEqual, removeAnnotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnaryExpression

public UnaryExpression(String name,
                       OperatorPlan plan,
                       byte b,
                       LogicalExpression exp)
Will add this operator to the plan and connect it to the left and right hand side operators.

Parameters:
name - of the operator
plan - plan this operator is part of
b - Datatype of this expression
exp - expression that this expression operators on
Method Detail

getExpression

public LogicalExpression getExpression()
                                throws IOException
Get the expression that this unary expression operators on.

Returns:
expression on the left hand side
Throws:
IOException


Copyright © ${year} The Apache Software Foundation