|
||||||||||
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
public abstract class LogicalExpression
Logical representation of expression operators. Expression operators have a data type and a uid. Uid is a unique id for each expression.
Field Summary | |
---|---|
protected LogicalSchema.LogicalFieldSchema |
fieldSchema
|
protected LogicalSchema.LogicalFieldSchema |
uidOnlyFieldSchema
|
Fields inherited from class org.apache.pig.newplan.Operator |
---|
annotations, hashPrime, location, name, plan |
Constructor Summary | |
---|---|
LogicalExpression(String name,
OperatorPlan plan)
|
Method Summary | |
---|---|
abstract 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. |
abstract LogicalSchema.LogicalFieldSchema |
getFieldSchema()
Get the field schema for the output of this expression operator. |
static long |
getNextUid()
|
byte |
getType()
Get the data type for this expression. |
boolean |
hasFieldSchema()
This is a convenience method to avoid the side-effectful nature of getFieldSchema(). |
void |
neverUseForRealSetFieldSchema(LogicalSchema.LogicalFieldSchema fs)
|
void |
resetFieldSchema()
|
static void |
resetNextUid()
|
void |
resetUid()
Erase all cached uid, regenerate uid when we regenerating schema. |
String |
toString()
|
Methods inherited from class org.apache.pig.newplan.Operator |
---|
accept, annotate, getAnnotation, getLocation, getName, getPlan, isEqual, removeAnnotation, setLocation, setPlan |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected LogicalSchema.LogicalFieldSchema fieldSchema
protected LogicalSchema.LogicalFieldSchema uidOnlyFieldSchema
Constructor Detail |
---|
public LogicalExpression(String name, OperatorPlan plan)
name
- of the operatorplan
- LogicalExpressionPlan this is part ofMethod Detail |
---|
public static long getNextUid()
public static void resetNextUid()
public boolean hasFieldSchema()
public abstract LogicalSchema.LogicalFieldSchema getFieldSchema() throws FrontendException
FrontendException
public void resetFieldSchema()
public byte getType() throws FrontendException
FrontendException
public String toString()
toString
in class Object
public void neverUseForRealSetFieldSchema(LogicalSchema.LogicalFieldSchema fs) throws FrontendException
FrontendException
public abstract LogicalExpression deepCopy(LogicalExpressionPlan lgExpPlan) throws FrontendException
lgExpPlan
- LogicalExpressionPlan in which this expression will be added.
IOException.
FrontendException
public void resetUid()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |