|
||||||||||
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.expression.LogicalExpression
org.apache.pig.experimental.logical.expression.ColumnExpression
org.apache.pig.experimental.logical.expression.ProjectExpression
public class ProjectExpression
Projection of columns in an expression.
Field Summary |
---|
Fields inherited from class org.apache.pig.experimental.logical.expression.LogicalExpression |
---|
type, uid |
Fields inherited from class org.apache.pig.experimental.plan.Operator |
---|
annotations, hashPrime, name, plan |
Constructor Summary | |
---|---|
ProjectExpression(OperatorPlan plan,
byte type,
int inputNum,
int colNum)
Adds projection to the plan. |
Method Summary | |
---|---|
void |
accept(PlanVisitor v)
Accept a visitor at this node in the graph. |
LogicalRelationalOperator |
findReferent(LogicalRelationalOperator currentOp)
Find the LogicalRelationalOperator that this projection refers to. |
int |
getColNum()
Column number this project references. |
int |
getInputNum()
Input number this project references. |
boolean |
isEqual(Operator other)
This is like a shallow equals comparison. |
boolean |
isProjectStar()
|
void |
setColNum(int colNum)
Set the column number for this project. |
void |
setInputNum(int inputNum)
|
void |
setType(byte type)
Set the type of the projection. |
void |
setUid(LogicalRelationalOperator currentOp)
Set the uid. |
String |
toString()
|
Methods inherited from class org.apache.pig.experimental.logical.expression.LogicalExpression |
---|
getNextUid, getType, getUid, neverUseForRealSetUid, resetNextUid |
Methods inherited from class org.apache.pig.experimental.plan.Operator |
---|
annotate, getAnnotation, getName, getPlan, removeAnnotation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProjectExpression(OperatorPlan plan, byte type, int inputNum, int colNum)
plan
- LogicalExpressionPlan this projection will be a part oftype
- type of this projection, can be unknowninputNum
- Input number this project references.colNum
- Column number this project references.Method Detail |
---|
public void accept(PlanVisitor v) throws IOException
Operator
accept
in class Operator
v
- Visitor to accept.
IOException
public int getInputNum()
public void setInputNum(int inputNum)
public int getColNum()
public void setColNum(int colNum)
colNum
- new column number for projectionpublic void setType(byte type)
type
- to set this projection topublic boolean isProjectStar()
public void setUid(LogicalRelationalOperator currentOp) throws IOException
LogicalExpression
setUid
in class LogicalExpression
currentOp
- Current LogicalRelationalOperator that this expression operator
is attached to. Passed so that projection operators can determine their uid.
IOException
public LogicalRelationalOperator findReferent(LogicalRelationalOperator currentOp) throws IOException
currentOp
- Current operator this projection is attached to
IOException
public boolean isEqual(Operator other)
Operator
isEqual
in class Operator
public String toString()
toString
in class LogicalExpression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |