org.apache.pig.impl.logicalLayer
Class LogicalOperator

java.lang.Object
  extended by org.apache.pig.impl.logicalLayer.LogicalOperator
All Implemented Interfaces:
Serializable, ExecScopedLogicalOperator
Direct Known Subclasses:
LOCogroup, LODefine, LOEval, LOLoad, LOSort, LOSplit, LOSplitOutput, LOStore, LOUnion

public abstract class LogicalOperator
extends Object
implements Serializable, ExecScopedLogicalOperator

See Also:
Serialized Form

Field Summary
 String alias
           
static int AMENDABLE
           
static int FIXED
           
protected  long id
           
protected  List<OperatorKey> inputs
           
static int MONOTONE
           
protected  Map<OperatorKey,LogicalOperator> opTable
           
protected  int requestedParallelism
           
protected  TupleSchema schema
           
protected  String scope
           
static int UPDATABLE
           
 
Constructor Summary
protected LogicalOperator(Map<OperatorKey,LogicalOperator> opTable, String scope, long id)
           
protected LogicalOperator(Map<OperatorKey,LogicalOperator> opTable, String scope, long id, List<OperatorKey> inputs)
           
protected LogicalOperator(Map<OperatorKey,LogicalOperator> opTable, String scope, long id, OperatorKey input)
           
 
Method Summary
 String arguments()
           
 String getAlias()
           
 List<String> getFuncs()
           
 long getId()
           
 List<OperatorKey> getInputs()
           
 OperatorKey getOperatorKey()
           
 Map<OperatorKey,LogicalOperator> getOpTable()
           
abstract  int getOutputType()
           
 int getRequestedParallelism()
           
 String getScope()
           
 String name()
           
abstract  TupleSchema outputSchema()
           
 void setAlias(String newAlias)
           
 void setRequestedParallelism(int newRequestedParallelism)
           
 void setSchema(TupleSchema schema)
           
 String toString()
           
abstract  void visit(LOVisitor v)
          Visit all of the logical operators in a tree, starting with this one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

alias

public String alias

FIXED

public static final int FIXED
See Also:
Constant Field Values

MONOTONE

public static final int MONOTONE
See Also:
Constant Field Values

UPDATABLE

public static final int UPDATABLE
See Also:
Constant Field Values

AMENDABLE

public static final int AMENDABLE
See Also:
Constant Field Values

requestedParallelism

protected int requestedParallelism

schema

protected TupleSchema schema

inputs

protected List<OperatorKey> inputs

opTable

protected Map<OperatorKey,LogicalOperator> opTable

scope

protected String scope

id

protected long id
Constructor Detail

LogicalOperator

protected LogicalOperator(Map<OperatorKey,LogicalOperator> opTable,
                          String scope,
                          long id)

LogicalOperator

protected LogicalOperator(Map<OperatorKey,LogicalOperator> opTable,
                          String scope,
                          long id,
                          List<OperatorKey> inputs)

LogicalOperator

protected LogicalOperator(Map<OperatorKey,LogicalOperator> opTable,
                          String scope,
                          long id,
                          OperatorKey input)
Method Detail

getOperatorKey

public OperatorKey getOperatorKey()
Specified by:
getOperatorKey in interface ExecScopedLogicalOperator

getScope

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

getId

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

getAlias

public String getAlias()

setAlias

public void setAlias(String newAlias)

getRequestedParallelism

public int getRequestedParallelism()

setRequestedParallelism

public void setRequestedParallelism(int newRequestedParallelism)

toString

public String toString()
Overrides:
toString in class Object

outputSchema

public abstract TupleSchema outputSchema()

name

public String name()

getInputs

public List<OperatorKey> getInputs()

getOpTable

public Map<OperatorKey,LogicalOperator> getOpTable()

arguments

public String arguments()

getFuncs

public List<String> getFuncs()

getOutputType

public abstract int getOutputType()

setSchema

public void setSchema(TupleSchema schema)

visit

public abstract void visit(LOVisitor v)
Visit all of the logical operators in a tree, starting with this one.

Parameters:
v - LOVisitor to visit this logical plan with.


Copyright © ${year} The Apache Software Foundation