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

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.LOInnerLoad

public class LOInnerLoad
extends LogicalRelationalOperator

Operator to map the data into the inner plan of LOForEach It can only be used in the inner plan of LOForEach


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
LOInnerLoad(LogicalPlan plan, LOForEach foreach, ProjectExpression projectExpression)
           
LOInnerLoad(OperatorPlan plan, LOForEach foreach, int colNum)
           
LOInnerLoad(OperatorPlan plan, LOForEach foreach, String colAlias)
           
 
Method Summary
 void accept(PlanVisitor v)
          Accept a visitor at this node in the graph.
 int getColNum()
           
 LOForEach getLOForEach()
          Get the LOForEach operator that contains this operator as part of inner plan
 ProjectExpression getProjection()
           
 LogicalSchema getSchema()
          Get the schema for the output of this relational operator.
 boolean isEqual(Operator other)
          This is like a shallow equals comparison.
 void resetSchema()
          Reset the schema to null so that the next time getSchema is called the schema will be regenerated from scratch.
 void setLocation(SourceLocation loc)
           
 boolean sourceIsBag()
           
 String toString()
           
 
Methods inherited from class org.apache.pig.newplan.logical.relational.LogicalRelationalOperator
checkEquality, fixDuplicateUids, getAlias, getCustomPartitioner, getLineNumber, getRequestedParallelism, isPinnedOption, neverUseForRealSetSchema, pinOption, resetUid, setAlias, setCustomPartitioner, setRequestedParallelism, setSchema
 
Methods inherited from class org.apache.pig.newplan.Operator
annotate, getAnnotation, getLocation, getName, getPlan, removeAnnotation, setPlan
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LOInnerLoad

public LOInnerLoad(OperatorPlan plan,
                   LOForEach foreach,
                   int colNum)

LOInnerLoad

public LOInnerLoad(OperatorPlan plan,
                   LOForEach foreach,
                   String colAlias)
            throws FrontendException
Throws:
FrontendException

LOInnerLoad

public LOInnerLoad(LogicalPlan plan,
                   LOForEach foreach,
                   ProjectExpression projectExpression)
Method Detail

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

resetSchema

public void resetSchema()
Description copied from class: LogicalRelationalOperator
Reset the schema to null so that the next time getSchema is called the schema will be regenerated from scratch.

Overrides:
resetSchema in class LogicalRelationalOperator

getProjection

public ProjectExpression getProjection()

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

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

getColNum

public int getColNum()

getLOForEach

public LOForEach getLOForEach()
Get the LOForEach operator that contains this operator as part of inner plan

Returns:
the LOForEach operator

sourceIsBag

public boolean sourceIsBag()

toString

public String toString()
Overrides:
toString in class LogicalRelationalOperator

setLocation

public void setLocation(SourceLocation loc)
Overrides:
setLocation in class Operator


Copyright © 2007-2012 The Apache Software Foundation