org.apache.pig.experimental.logical.relational
Class LOCogroup

java.lang.Object
  extended by org.apache.pig.experimental.plan.Operator
      extended by org.apache.pig.experimental.logical.relational.LogicalRelationalOperator
          extended by org.apache.pig.experimental.logical.relational.LOCogroup

public class LOCogroup
extends LogicalRelationalOperator


Nested Class Summary
static class LOCogroup.GROUPTYPE
          Enum for the type of group
 
Field Summary
 
Fields inherited from class org.apache.pig.experimental.logical.relational.LogicalRelationalOperator
alias, lineNum, requestedParallelism, schema
 
Fields inherited from class org.apache.pig.experimental.plan.Operator
annotations, hashPrime, name, plan
 
Constructor Summary
LOCogroup(OperatorPlan plan, MultiMap<Integer,LogicalExpressionPlan> expressionPlans, boolean[] isInner)
           
LOCogroup(OperatorPlan plan, MultiMap<Integer,LogicalExpressionPlan> expressionPlans, LOCogroup.GROUPTYPE groupType, boolean[] isInner, int requestedParrellism)
           
 
Method Summary
 void accept(PlanVisitor v)
          Accept a visitor at this node in the graph.
 MultiMap<Integer,LogicalExpressionPlan> getExpressionPlans()
           
 Map<Integer,Long> getGeneratedInputUids()
          Returns an Unmodifiable Map of Input Number to Uid
 LOCogroup.GROUPTYPE getGroupType()
           
 boolean[] getInner()
           
 LogicalSchema getSchema()
          Get the schema for the output of this relational operator.
 boolean isEqual(Operator other)
          This is like a shallow equals comparison.
 
Methods inherited from class org.apache.pig.experimental.logical.relational.LogicalRelationalOperator
checkEquality, getAlias, getLineNumber, getRequestedParallelisam, neverUseForRealSetSchema, resetSchema, setAlias, setRequestedParallelism, toString
 
Methods inherited from class org.apache.pig.experimental.plan.Operator
annotate, getAnnotation, getName, getPlan, removeAnnotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LOCogroup

public LOCogroup(OperatorPlan plan,
                 MultiMap<Integer,LogicalExpressionPlan> expressionPlans,
                 boolean[] isInner)

LOCogroup

public LOCogroup(OperatorPlan plan,
                 MultiMap<Integer,LogicalExpressionPlan> expressionPlans,
                 LOCogroup.GROUPTYPE groupType,
                 boolean[] isInner,
                 int requestedParrellism)
Method Detail

getSchema

public LogicalSchema getSchema()
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

accept

public void accept(PlanVisitor v)
            throws IOException
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:
IOException

isEqual

public boolean isEqual(Operator other)
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

getGroupType

public LOCogroup.GROUPTYPE getGroupType()

getGeneratedInputUids

public Map<Integer,Long> getGeneratedInputUids()
Returns an Unmodifiable Map of Input Number to Uid

Returns:
Unmodifiable Map

getExpressionPlans

public MultiMap<Integer,LogicalExpressionPlan> getExpressionPlans()

getInner

public boolean[] getInner()


Copyright © ${year} The Apache Software Foundation