org.apache.pig.impl.physicalLayer
Class PhysicalOperator

java.lang.Object
  extended by org.apache.pig.impl.physicalLayer.PhysicalOperator
All Implemented Interfaces:
Serializable, ExecPhysicalOperator
Direct Known Subclasses:
POCogroup, POEval, POLoad, POMapreduce, PORead, POSort, POSplit, POStore, POUnion

public abstract class PhysicalOperator
extends Object
implements Serializable, ExecPhysicalOperator

See Also:
Serialized Form

Field Summary
protected  long id
           
 OperatorKey[] inputs
           
protected  LineageTracer lineageTracer
           
 Map<OperatorKey,ExecPhysicalOperator> opTable
           
 int outputType
           
protected  String scope
           
 
Constructor Summary
PhysicalOperator(String scope, long id, Map<OperatorKey,ExecPhysicalOperator> opTable, int outputType)
           
 
Method Summary
 void close()
           
 long getId()
           
abstract  Tuple getNext()
           
 OperatorKey getOperatorKey()
           
 int getOutputType()
           
 String getScope()
           
 boolean open()
           
 void setLineageTracer(LineageTracer lineageTracer)
           
abstract  void visit(POVisitor v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

opTable

public Map<OperatorKey,ExecPhysicalOperator> opTable

inputs

public OperatorKey[] inputs

outputType

public int outputType

lineageTracer

protected LineageTracer lineageTracer

scope

protected String scope

id

protected long id
Constructor Detail

PhysicalOperator

public PhysicalOperator(String scope,
                        long id,
                        Map<OperatorKey,ExecPhysicalOperator> opTable,
                        int outputType)
Method Detail

getOperatorKey

public OperatorKey getOperatorKey()

getScope

public String getScope()
Specified by:
getScope in interface ExecPhysicalOperator

getId

public long getId()
Specified by:
getId in interface ExecPhysicalOperator

open

public boolean open()
             throws IOException
Throws:
IOException

getNext

public abstract Tuple getNext()
                       throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException

setLineageTracer

public void setLineageTracer(LineageTracer lineageTracer)

getOutputType

public int getOutputType()

visit

public abstract void visit(POVisitor v)


Copyright © ${year} The Apache Software Foundation