|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ArithmeticExpression
An arithmetic expression.
| Method Summary | |
|---|---|
void |
accept(ArithmeticExpressionVisitor visitor)
Accept an arithmetic expression visitor. |
void |
configure(TupleMetadata metadata)
Configures the expression with the metadata. |
void |
configure(TupleMetadata metadata,
java.util.Set<Attribute> correlatedAttributes)
Configures the expression with the metadata. |
void |
evaluate(Tuple tuple)
Evaluates the arithmetic expression on the given input tuple. |
ArithmeticExpression[] |
getChildren()
Returns the children of this arithmetic expression. |
ColumnMetadata |
getMetadata()
Get the result type that is returned when evaluating this expression with tuples of the given type. |
java.lang.Object |
getResult()
Returns the result of the evaluation. |
void |
resetType()
Reset type to original. |
void |
setContextType(int type)
Set context type for an expression. |
| Method Detail |
|---|
void evaluate(Tuple tuple)
throws ExpressionEvaluationException
tuple - input tuple
ExpressionEvaluationException - if expression can not be evaluatedjava.lang.Object getResult()
void configure(TupleMetadata metadata)
throws TypeMismatchException
getMetadata().
This method is also used for type validation.
metadata - tuple metadata
TypeMismatchException - when the operand types are incompatible
void configure(TupleMetadata metadata,
java.util.Set<Attribute> correlatedAttributes)
throws TypeMismatchException
getMetadata().
This method is also used for type validation. A set of correlated
attributes can be passed in to support type validation of correlated
attributes.
metadata - tuple metadatacorrelatedAttributes - set of correlated attributes, containing their types.
TypeMismatchException - when the operand types are incompatibleColumnMetadata getMetadata()
ArithmeticExpression[] getChildren()
void accept(ArithmeticExpressionVisitor visitor)
visitor - void setContextType(int type)
type - context tuple typevoid resetType()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||