org.apache.pig.experimental.logical.expression
Class CastExpression
java.lang.Object
org.apache.pig.experimental.plan.Operator
org.apache.pig.experimental.logical.expression.LogicalExpression
org.apache.pig.experimental.logical.expression.UnaryExpression
org.apache.pig.experimental.logical.expression.CastExpression
public class CastExpression
- extends UnaryExpression
CastExpression
public CastExpression(OperatorPlan plan,
byte b,
LogicalExpression exp)
accept
public void accept(PlanVisitor v)
throws IOException
- Description copied from class:
Operator
- Accept a visitor at this node in the graph.
- Specified by:
accept
in class Operator
- Parameters:
v
- Visitor to accept.
- Throws:
IOException
setFuncSpec
public void setFuncSpec(FuncSpec spec)
- Set the
FuncSpec
that performs the casting functionality
- Parameters:
spec
- the FuncSpec
that does the casting
getFuncSpec
public FuncSpec getFuncSpec()
- Get the
FuncSpec
that performs the casting functionality
- Returns:
- the
FuncSpec
that does the casting
isEqual
public boolean isEqual(Operator other)
- Description copied from class:
Operator
- This is like a shallow equals comparison.
It returns true if two operators have equivalent properties even if they are
different objects. Here properties mean equivalent plan and equivalent name.
- Specified by:
isEqual
in class Operator
- Returns:
- true if two object have equivalent properties, else false
Copyright © ${year} The Apache Software Foundation