|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pig.experimental.plan.Operator
org.apache.pig.experimental.logical.relational.LogicalRelationalOperator
public abstract class LogicalRelationalOperator
Logical representation of relational operators. Relational operators have a schema.
| Field Summary | |
|---|---|
protected String |
alias
|
protected int |
lineNum
|
protected int |
requestedParallelism
|
protected LogicalSchema |
schema
|
| Fields inherited from class org.apache.pig.experimental.plan.Operator |
|---|
annotations, hashPrime, name, plan |
| Constructor Summary | |
|---|---|
LogicalRelationalOperator(String name,
OperatorPlan plan)
|
|
LogicalRelationalOperator(String name,
OperatorPlan plan,
int rp)
|
|
| Method Summary | |
|---|---|
protected boolean |
checkEquality(LogicalRelationalOperator other)
Do some basic equality checks on two relational operators. |
String |
getAlias()
Get the alias of this operator. |
int |
getLineNumber()
Get the line number in the submitted Pig Latin script where this operator occurred. |
int |
getRequestedParallelisam()
Get the requestedParallelism for this operator. |
abstract LogicalSchema |
getSchema()
Get the schema for the output of this relational operator. |
void |
neverUseForRealSetSchema(LogicalSchema schema)
Only to be used by unit tests. |
void |
resetSchema()
Reset the schema to null so that the next time getSchema is called the schema will be regenerated from scratch. |
void |
setAlias(String alias)
|
void |
setRequestedParallelism(int parallel)
|
String |
toString()
|
| Methods inherited from class org.apache.pig.experimental.plan.Operator |
|---|
accept, annotate, getAnnotation, getName, getPlan, isEqual, removeAnnotation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected LogicalSchema schema
protected int requestedParallelism
protected String alias
protected int lineNum
| Constructor Detail |
|---|
public LogicalRelationalOperator(String name,
OperatorPlan plan)
name - of this operatorplan - this operator is in
public LogicalRelationalOperator(String name,
OperatorPlan plan,
int rp)
name - of this operatorplan - this operator is inrp - requested parallelism| Method Detail |
|---|
public abstract LogicalSchema getSchema()
public void resetSchema()
public int getRequestedParallelisam()
public String getAlias()
public void setAlias(String alias)
public void setRequestedParallelism(int parallel)
public int getLineNumber()
public void neverUseForRealSetSchema(LogicalSchema schema)
schema - to setprotected boolean checkEquality(LogicalRelationalOperator other)
other - LogicalRelationalOperator to compare predecessors against
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||