|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.newplan.Operator
org.apache.pig.newplan.logical.expression.LogicalExpression
org.apache.pig.newplan.logical.expression.ColumnExpression
org.apache.pig.newplan.logical.expression.ProjectExpression
public class ProjectExpression
Projection of columns in an expression.
Field Summary |
---|
Fields inherited from class org.apache.pig.newplan.logical.expression.LogicalExpression |
---|
fieldSchema, uidOnlyFieldSchema |
Fields inherited from class org.apache.pig.newplan.Operator |
---|
annotations, hashPrime, name, plan |
Constructor Summary | |
---|---|
ProjectExpression(OperatorPlan plan,
int inputNum,
int colNum,
LogicalRelationalOperator attachedRelationalOp)
Adds projection to the plan. |
Method Summary | |
---|---|
void |
accept(PlanVisitor v)
Accept a visitor at this node in the graph. |
LogicalExpression |
deepCopy(LogicalExpressionPlan lgExpPlan)
Create the deep copy of this expression and add that into the passed LogicalExpressionPlan Return the copy of this expression with updated logical expression plan. |
LogicalRelationalOperator |
findReferent()
Find the LogicalRelationalOperator that this projection refers to. |
LogicalRelationalOperator |
getAttachedRelationalOp()
|
int |
getColNum()
Column number this project references. |
LogicalSchema.LogicalFieldSchema |
getFieldSchema()
Get the field schema for the output of this expression operator. |
int |
getInputNum()
Input number this project references. |
byte |
getType()
Get the data type for this expression. |
boolean |
isEqual(Operator other)
This is like a shallow equals comparison. |
boolean |
isProjectStar()
|
void |
setAttachedRelationalOp(LogicalRelationalOperator attachedRelationalOp)
|
void |
setColNum(int colNum)
Set the column number for this project. |
void |
setInputNum(int inputNum)
|
String |
toString()
|
Methods inherited from class org.apache.pig.newplan.logical.expression.LogicalExpression |
---|
getNextUid, neverUseForRealSetFieldSchema, resetFieldSchema, resetNextUid, resetUid |
Methods inherited from class org.apache.pig.newplan.Operator |
---|
annotate, getAnnotation, getName, getPlan, removeAnnotation, setPlan |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProjectExpression(OperatorPlan plan, int inputNum, int colNum, LogicalRelationalOperator attachedRelationalOp)
plan
- LogicalExpressionPlan this projection will be a part ofinputNum
- Input number this project references.colNum
- Column number this project references.Method Detail |
---|
public void accept(PlanVisitor v) throws FrontendException
Operator
accept
in class Operator
v
- Visitor to accept.
FrontendException
public int getInputNum()
public void setInputNum(int inputNum)
public int getColNum()
public void setColNum(int colNum)
colNum
- new column number for projectionpublic boolean isProjectStar()
public LogicalSchema.LogicalFieldSchema getFieldSchema() throws FrontendException
LogicalExpression
getFieldSchema
in class LogicalExpression
FrontendException
public LogicalRelationalOperator findReferent() throws FrontendException
FrontendException
public boolean isEqual(Operator other) throws FrontendException
Operator
isEqual
in class Operator
FrontendException
public String toString()
toString
in class LogicalExpression
public LogicalRelationalOperator getAttachedRelationalOp()
public void setAttachedRelationalOp(LogicalRelationalOperator attachedRelationalOp)
public byte getType() throws FrontendException
LogicalExpression
getType
in class LogicalExpression
FrontendException
public LogicalExpression deepCopy(LogicalExpressionPlan lgExpPlan) throws FrontendException
LogicalExpression
deepCopy
in class LogicalExpression
lgExpPlan
- LogicalExpressionPlan in which this expression will be added.
FrontendException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |