|
||||||||||
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.BinCondExpression
public class BinCondExpression
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, location, name, plan |
Constructor Summary | |
---|---|
BinCondExpression(OperatorPlan plan,
LogicalExpression condition,
LogicalExpression lhs,
LogicalExpression rhs)
Will add this operator to the plan and connect it to the left and right hand side operators and the condition operator |
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. |
LogicalExpression |
getCondition()
Returns the operator which handles this condition |
LogicalSchema.LogicalFieldSchema |
getFieldSchema()
Get the field schema for the output of this expression operator. |
LogicalExpression |
getLhs()
Get the left hand side of this expression. |
LogicalExpression |
getRhs()
Get the right hand side of this expression. |
boolean |
isEqual(Operator other)
This is like a shallow equals comparison. |
Methods inherited from class org.apache.pig.newplan.logical.expression.LogicalExpression |
---|
getNextUid, getType, neverUseForRealSetFieldSchema, resetFieldSchema, resetNextUid, resetUid, toString |
Methods inherited from class org.apache.pig.newplan.Operator |
---|
annotate, getAnnotation, getLocation, getName, getPlan, removeAnnotation, setLocation, setPlan |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BinCondExpression(OperatorPlan plan, LogicalExpression condition, LogicalExpression lhs, LogicalExpression rhs)
plan
- plan this operator is part oflhs
- expression on its left hand siderhs
- expression on its right hand sideMethod Detail |
---|
public LogicalExpression getCondition() throws FrontendException
FrontendException
public LogicalExpression getLhs() throws FrontendException
FrontendException
public LogicalExpression getRhs() throws FrontendException
FrontendException
public void accept(PlanVisitor v) throws FrontendException
Operator
accept
in class Operator
v
- Visitor to accept.
FrontendException
public boolean isEqual(Operator other) throws FrontendException
Operator
isEqual
in class Operator
FrontendException
public LogicalSchema.LogicalFieldSchema getFieldSchema() throws FrontendException
LogicalExpression
getFieldSchema
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 |