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

java.lang.Object
  extended by org.apache.pig.newplan.Operator
      extended by org.apache.pig.newplan.logical.expression.LogicalExpression
          extended by org.apache.pig.newplan.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.newplan.logical.expression.LogicalExpression
fieldSchema, uidOnlyFieldSchema
 
Fields inherited from class org.apache.pig.newplan.Operator
annotations, hashPrime, location, name, plan
 
Constructor Summary
UnaryExpression(String name, OperatorPlan plan, 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.newplan.logical.expression.LogicalExpression
deepCopy, getFieldSchema, getNextUid, getType, neverUseForRealSetFieldSchema, resetFieldSchema, resetNextUid, resetUid, toString
 
Methods inherited from class org.apache.pig.newplan.Operator
accept, annotate, getAnnotation, getLocation, getName, getPlan, isEqual, removeAnnotation, setLocation, setPlan
 
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,
                       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
exp - expression that this expression operators on
Method Detail

getExpression

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

Returns:
expression on the left hand side
Throws:
FrontendException


Copyright © 2007-2012 The Apache Software Foundation