public class CastExpression extends UnaryExpression
fieldSchema, uidOnlyFieldSchema
Constructor and Description |
---|
CastExpression(OperatorPlan plan,
LogicalExpression exp,
LogicalSchema.LogicalFieldSchema fs) |
Modifier and Type | Method and Description |
---|---|
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.
|
LogicalSchema.LogicalFieldSchema |
getFieldSchema()
Get the field schema for the output of this expression operator.
|
FuncSpec |
getFuncSpec()
Get the
FuncSpec that performs the casting functionality |
boolean |
isEqual(Operator other)
This is like a shallow equals comparison.
|
void |
setFuncSpec(FuncSpec spec)
Set the
FuncSpec that performs the casting functionality |
getExpression
getNextUid, getType, hasFieldSchema, neverUseForRealSetFieldSchema, resetFieldSchema, resetNextUid, resetUid, toString
annotate, getAnnotation, getLocation, getName, getPlan, removeAnnotation, setLocation, setPlan
public CastExpression(OperatorPlan plan, LogicalExpression exp, LogicalSchema.LogicalFieldSchema fs)
public void accept(PlanVisitor v) throws FrontendException
Operator
accept
in class Operator
v
- Visitor to accept.FrontendException
public void setFuncSpec(FuncSpec spec)
FuncSpec
that performs the casting functionalityspec
- the FuncSpec
that does the castingpublic FuncSpec getFuncSpec()
FuncSpec
that performs the casting functionalityFuncSpec
that does the castingpublic 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
Copyright © 2007-2012 The Apache Software Foundation