org.apache.pig.impl.logicalLayer
Class LogicalOperator
java.lang.Object
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
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)
|
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
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)
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