org.apache.pig.newplan.logical.relational
Class LOSort

java.lang.Object
  extended by org.apache.pig.newplan.Operator
      extended by org.apache.pig.newplan.logical.relational.LogicalRelationalOperator
          extended by org.apache.pig.newplan.logical.relational.LOSort

public class LOSort
extends LogicalRelationalOperator


Field Summary
 
Fields inherited from class org.apache.pig.newplan.logical.relational.LogicalRelationalOperator
alias, lineNum, mCustomPartitioner, mPinnedOptions, requestedParallelism, schema
 
Fields inherited from class org.apache.pig.newplan.Operator
annotations, hashPrime, location, name, plan
 
Constructor Summary
LOSort(OperatorPlan plan)
           
LOSort(OperatorPlan plan, List<LogicalExpressionPlan> sortColPlans, List<Boolean> ascCols, FuncSpec sortFunc)
           
 
Method Summary
 void accept(PlanVisitor v)
          Accept a visitor at this node in the graph.
 List<Boolean> getAscendingCols()
           
 Operator getInput(LogicalPlan plan)
           
 long getLimit()
           
 LogicalSchema getSchema()
          Get the schema for the output of this relational operator.
 List<LogicalExpressionPlan> getSortColPlans()
           
 SortInfo getSortInfo()
           
 FuncSpec getUserFunc()
           
 boolean isEqual(Operator other)
          This is like a shallow equals comparison.
 boolean isLimited()
           
 boolean isStar()
           
 void setAscendingCols(List<Boolean> ascCols)
           
 void setLimit(long l)
           
 void setSortColPlans(List<LogicalExpressionPlan> sortPlans)
           
 void setStar(boolean b)
           
 void setUserFunc(FuncSpec func)
           
 
Methods inherited from class org.apache.pig.newplan.logical.relational.LogicalRelationalOperator
checkEquality, getAlias, getCustomPartitioner, getLineNumber, getRequestedParallelisam, isPinnedOption, neverUseForRealSetSchema, pinOption, resetSchema, resetUid, setAlias, setCustomPartitioner, setRequestedParallelism, setSchema, toString
 
Methods inherited from class org.apache.pig.newplan.Operator
annotate, getAnnotation, getLocation, getName, getPlan, removeAnnotation, setLocation, setPlan
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LOSort

public LOSort(OperatorPlan plan)

LOSort

public LOSort(OperatorPlan plan,
              List<LogicalExpressionPlan> sortColPlans,
              List<Boolean> ascCols,
              FuncSpec sortFunc)
Method Detail

getSortColPlans

public List<LogicalExpressionPlan> getSortColPlans()

setSortColPlans

public void setSortColPlans(List<LogicalExpressionPlan> sortPlans)

getAscendingCols

public List<Boolean> getAscendingCols()

setAscendingCols

public void setAscendingCols(List<Boolean> ascCols)

getUserFunc

public FuncSpec getUserFunc()

setUserFunc

public void setUserFunc(FuncSpec func)

isStar

public boolean isStar()

setStar

public void setStar(boolean b)

setLimit

public void setLimit(long l)

getLimit

public long getLimit()

isLimited

public boolean isLimited()

getSchema

public LogicalSchema getSchema()
                        throws FrontendException
Description copied from class: LogicalRelationalOperator
Get the schema for the output of this relational operator. This does not merely return the schema variable. If schema is not yet set, this will attempt to construct it. Therefore it is abstract since each operator will need to construct its schema differently.

Specified by:
getSchema in class LogicalRelationalOperator
Returns:
the schema
Throws:
FrontendException

accept

public void accept(PlanVisitor v)
            throws FrontendException
Description copied from class: Operator
Accept a visitor at this node in the graph.

Specified by:
accept in class Operator
Parameters:
v - Visitor to accept.
Throws:
FrontendException

getSortInfo

public SortInfo getSortInfo()
                     throws FrontendException
Throws:
FrontendException

isEqual

public boolean isEqual(Operator other)
                throws FrontendException
Description copied from class: Operator
This is like a shallow equals comparison. It returns true if two operators have equivalent properties even if they are different objects. Here properties mean equivalent plan and equivalent name.

Specified by:
isEqual in class Operator
Returns:
true if two object have equivalent properties, else false
Throws:
FrontendException

getInput

public Operator getInput(LogicalPlan plan)


Copyright © 2007-2012 The Apache Software Foundation